sched/topology: Export asym_cap_list
authorQais Yousef <qyousef@layalina.io>
Sun, 24 Mar 2024 00:45:49 +0000 (00:45 +0000)
committerIngo Molnar <mingo@kernel.org>
Mon, 25 Mar 2024 11:09:53 +0000 (12:09 +0100)
commit77222b0d12e8ae6f082261842174cc2e981bf99c
tree9cef8509e034f42484679cbd856aa31d0ead1ccd
parentf4566a1e73957800df75a3dd2dccee8a4697f327
sched/topology: Export asym_cap_list

So that we can use it to iterate through available capacities in the
system. Sort asym_cap_list in descending order as expected users are
likely to be interested on the highest capacity first.

Make the list RCU protected to allow for cheap access in hot paths.

Signed-off-by: Qais Yousef <qyousef@layalina.io>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20240324004552.999936-2-qyousef@layalina.io
kernel/sched/sched.h
kernel/sched/topology.c