Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix bogus hotplug cpu warning

Fix bogus DEBUG_PREEMPT warning on x86_64, when cpu brought online after
bootup: current_is_keventd is right to note its use of smp_processor_id
is preempt-safe, but should use raw_smp_processor_id to avoid the warning.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Hugh Dickins and committed by
Linus Torvalds
d243769d 721ebe00

+1 -1
+1 -1
kernel/workqueue.c
··· 635 635 int current_is_keventd(void) 636 636 { 637 637 struct cpu_workqueue_struct *cwq; 638 - int cpu = smp_processor_id(); /* preempt-safe: keventd is per-cpu */ 638 + int cpu = raw_smp_processor_id(); /* preempt-safe: keventd is per-cpu */ 639 639 int ret = 0; 640 640 641 641 BUG_ON(!keventd_wq);