[PATCH v2 7/8] drivers/perf: hisi_pcie: Merge find_related_event() and get_event_idx()

Jonathan Cameron Jonathan.Cameron at Huawei.com
Mon Feb 26 07:18:49 PST 2024


On Fri, 23 Feb 2024 18:33:58 +0800
Yicong Yang <yangyicong at huawei.com> wrote:

> From: Junhao He <hejunhao3 at 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 at huawei.com>
> Signed-off-by: Yicong Yang <yangyicong at hisilicon.com>
Seems like a small optimization, but worthwhile.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron at huawei.com>




More information about the linux-arm-kernel mailing list