]> git.baikalelectronics.ru Git - kernel.git/commit
cpuset: Cleanup cpuset_cpus_allowed_fallback() use in select_fallback_rq()
authorWill Deacon <will@kernel.org>
Fri, 30 Jul 2021 11:24:31 +0000 (12:24 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 20 Aug 2021 10:32:59 +0000 (12:32 +0200)
commit88a7beb9df3f9fd83376a3d5ede237c1706a52f6
treefe236eb64fc7760d430b8b2272ffb10f222efa79
parentd8475ece5108e2b9324ea7527b1a7ac8d1bb8c01
cpuset: Cleanup cpuset_cpus_allowed_fallback() use in select_fallback_rq()

select_fallback_rq() only needs to recheck for an allowed CPU if the
affinity mask of the task has changed since the last check.

Return a 'bool' from cpuset_cpus_allowed_fallback() to indicate whether
the affinity mask was updated, and use this to elide the allowed check
when the mask has been left alone.

No functional change.

Suggested-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Link: https://lore.kernel.org/r/20210730112443.23245-5-will@kernel.org
include/linux/cpuset.h
kernel/cgroup/cpuset.c
kernel/sched/core.c