sched/core: Do not use smp_processor_id() with preempt enabled in smpboot_thread_fn()
authorCon Kolivas <kernel@kolivas.org>
Tue, 13 Sep 2016 06:27:05 +0000 (16:27 +1000)
committerIngo Molnar <mingo@kernel.org>
Thu, 22 Sep 2016 10:28:00 +0000 (12:28 +0200)
commit4fa5cd5245b627db88c9ca08ae442373b02596b4
treeaecd2b67c67aa25caf9b3691e50cd7bac91900dc
parentd59dc7bcfa649ef2128a76b6487b16f4b3f14d23
sched/core: Do not use smp_processor_id() with preempt enabled in smpboot_thread_fn()

We should not be using smp_processor_id() with preempt enabled.

Bug identified and fix provided by Alfred Chen.

Reported-by: Alfred Chen <cchalpha@gmail.com>
Signed-off-by: Con Kolivas <kernel@kolivas.org>
Cc: Alfred Chen <cchalpha@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/2042051.3vvUWIM0vs@hex
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/smpboot.c