summaryrefslogtreecommitdiffstats
path: root/drivers/memory
diff options
context:
space:
mode:
authorRik van Riel <riel@surriel.com>2018-09-26 05:58:40 +0200
committerPeter Zijlstra <peterz@infradead.org>2018-10-09 16:51:11 +0200
commitc3f7f2c7eba1a53d2e5ffbc2dcc9a20c5f094890 (patch)
tree5d44c63073ac248c29fa7708f7dee7bfe4ba8ba0 /drivers/memory
parentx86/mm/tlb: Restructure switch_mm_irqs_off() (diff)
downloadlinux-c3f7f2c7eba1a53d2e5ffbc2dcc9a20c5f094890.tar.xz
linux-c3f7f2c7eba1a53d2e5ffbc2dcc9a20c5f094890.zip
smp: use __cpumask_set_cpu in on_each_cpu_cond
The code in on_each_cpu_cond sets CPUs in a locally allocated bitmask, which should never be used by other CPUs simultaneously. There is no need to use locked memory accesses to set the bits in this bitmap. Switch to __cpumask_set_cpu. Cc: npiggin@gmail.com Cc: mingo@kernel.org Cc: will.deacon@arm.com Cc: songliubraving@fb.com Cc: kernel-team@fb.com Cc: hpa@zytor.com Suggested-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Rik van Riel <riel@surriel.com> Reviewed-by: Andy Lutomirski <luto@kernel.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: http://lkml.kernel.org/r/20180926035844.1420-4-riel@surriel.com
Diffstat (limited to 'drivers/memory')
0 files changed, 0 insertions, 0 deletions