Loading
drivers/perf: hisi_pcie: Merge find_related_event() and get_event_idx()
mainline inclusion from mainline-v6.9-rc1 commit 7da377059ee653dd4ddcc126fd26c9c78f7bc4e7 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9HCSA CVE: NA Reference: https://lore.kernel.org/all/20240223103359.18669-1-yangyicong@huawei.com/ ------------------------------------------------------------------------ The function xxx_find_related_event() scan all working events to find related events. During this process, we also can find the idle counters. If not found related events, return the first idle counter to simplify the code. Signed-off-by:Junhao He <hejunhao3@huawei.com> Signed-off-by:
Yicong Yang <yangyicong@hisilicon.com> Reviewed-by:
Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/20240223103359.18669-8-yangyicong@huawei.com Signed-off-by:
Will Deacon <will@kernel.org> Signed-off-by:
Slim6882 <yangjunshuo@huawei.com>