diff options
author | Peter Zijlstra <peterz@infradead.org> | 2021-02-24 11:21:35 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2021-03-06 12:40:21 +0100 |
commit | 3f1bc119cd7fc987c8ed25ffb717f99403bb308c (patch) | |
tree | 8ee04aee094a12ea4ad9b83523cfb76f4dd0a2b3 /kernel/sched/features.h | |
parent | 58b1a45086b5f80f2b2842aa7ed0da51a64a302b (diff) |
sched: Optimize migration_cpu_stop()
When the purpose of migration_cpu_stop() is to migrate the task to
'any' valid CPU, don't migrate the task when it's already running on a
valid CPU.
Fixes: 6d337eab041d ("sched: Fix migrate_disable() vs set_cpus_allowed_ptr()")
Cc: stable@kernel.org
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Link: https://lkml.kernel.org/r/20210224131355.569238629@infradead.org
Diffstat (limited to 'kernel/sched/features.h')
0 files changed, 0 insertions, 0 deletions