diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2019-02-12 14:57:01 +0530 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-02-13 08:34:13 +0100 |
commit | c89d92eddfad11e912fb506f85e1796064a9f9d2 (patch) | |
tree | 475797f3ce1899bad0098b86a7ca61a1fe5587e5 /kernel/sched/isolation.c | |
parent | 1b5500d73466c62fe048153f0cea1610d2543c7f (diff) | |
download | linux-stable-c89d92eddfad11e912fb506f85e1796064a9f9d2.tar.gz linux-stable-c89d92eddfad11e912fb506f85e1796064a9f9d2.tar.bz2 linux-stable-c89d92eddfad11e912fb506f85e1796064a9f9d2.zip |
sched/fair: Use non-atomic cpumask_{set,clear}_cpu()
The cpumasks updated here are not subject to concurrency and using
atomic bitops for them is pointless and expensive. Use the non-atomic
variants instead.
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Link: http://lkml.kernel.org/r/2e2a10f84b9049a81eef94ed6d5989447c21e34a.1549963617.git.viresh.kumar@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/isolation.c')
-rw-r--r-- | kernel/sched/isolation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/isolation.c b/kernel/sched/isolation.c index 81faddba9e20..b02d148e7672 100644 --- a/kernel/sched/isolation.c +++ b/kernel/sched/isolation.c @@ -80,7 +80,7 @@ static int __init housekeeping_setup(char *str, enum hk_flags flags) cpumask_andnot(housekeeping_mask, cpu_possible_mask, non_housekeeping_mask); if (cpumask_empty(housekeeping_mask)) - cpumask_set_cpu(smp_processor_id(), housekeeping_mask); + __cpumask_set_cpu(smp_processor_id(), housekeeping_mask); } else { cpumask_var_t tmp; |