sched: Add cpus_share_resources API
mainline inclusion from mainline-v6.7-rc1 commit b95303e0aeaf446b65169dd4142cacdaeb7d4c8b category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8E8NN CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b95303e0aeaf446b65169dd4142cacdaeb7d4c8b ---------------------------------------------------------------------- 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 <song.bao.hua@hisilicon.com> Signed-off-by:
Yicong Yang <yangyicong@hisilicon.com> Signed-off-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by:
Gautham R. Shenoy <gautham.shenoy@amd.com> Reviewed-by:
Tim Chen <tim.c.chen@linux.intel.com> Reviewed-by:
Vincent Guittot <vincent.guittot@linaro.org> Tested-and-reviewed-by:
Chen Yu <yu.c.chen@intel.com> Tested-by:
K Prateek Nayak <kprateek.nayak@amd.com> Link: https://lkml.kernel.org/r/20231019033323.54147-2-yangyicong@huawei.com Signed-off-by:
Jie Liu <liujie375@h-partners.com>
Loading
Please sign in to comment