diff options
author | Barry Song <[email protected]> | 2023-10-19 11:33:21 +0800 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2023-10-24 10:38:42 +0200 |
commit | b95303e0aeaf446b65169dd4142cacdaeb7d4c8b (patch) | |
tree | 448ae9f3ea16e3d4593686bc929c059a8b8bd9f0 /tools/perf/scripts/python/sched-migration.py | |
parent | 5ebde09d91707a4a9bec1e3d213e3c12ffde348f (diff) |
sched: Add cpus_share_resources API
Add cpus_share_resources() API. This is the preparation for the
optimization of select_idle_cpu() on platforms with cluster scheduler
level.
On a machine with clusters cpus_share_resources() will test whether
two cpus are within the same cluster. On a non-cluster machine it
will behaves the same as cpus_share_cache(). So we use "resources"
here for cache resources.
Signed-off-by: Barry Song <[email protected]>
Signed-off-by: Yicong Yang <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Gautham R. Shenoy <[email protected]>
Reviewed-by: Tim Chen <[email protected]>
Reviewed-by: Vincent Guittot <[email protected]>
Tested-and-reviewed-by: Chen Yu <[email protected]>
Tested-by: K Prateek Nayak <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions