summaryrefslogtreecommitdiffstats
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorHugh Dickins <hugh@veritas.com>2007-08-27 17:06:19 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-08-27 19:27:48 +0200
commitd243769d3f83b318813a04a9592bb7cfedc6c280 (patch)
tree4f288332b6b20f414b452219b1ea5ff4cc41eaa5 /kernel/workqueue.c
parentreverse CONFIG_ACPI_PROC_EVENT default (diff)
downloadlinux-d243769d3f83b318813a04a9592bb7cfedc6c280.tar.xz
linux-d243769d3f83b318813a04a9592bb7cfedc6c280.zip
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>
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r--kernel/workqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 58e5c152a6bb..e080d1d744cc 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -635,7 +635,7 @@ int keventd_up(void)
int current_is_keventd(void)
{
struct cpu_workqueue_struct *cwq;
- int cpu = smp_processor_id(); /* preempt-safe: keventd is per-cpu */
+ int cpu = raw_smp_processor_id(); /* preempt-safe: keventd is per-cpu */
int ret = 0;
BUG_ON(!keventd_wq);