]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] fix spinlock-debugging smp_processor_id() usage
authorIngo Molnar <mingo@elte.hu>
Tue, 20 Dec 2005 10:54:17 +0000 (11:54 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 20 Dec 2005 18:47:55 +0000 (10:47 -0800)
commit00232b3936ab57efc0622309457d1ab1a0a3600b
treed8f5dc090cef75f22e7ca152298096bb2877b6b8
parenta901f0a0591e546d56280d4159944af6131e938b
[PATCH] fix spinlock-debugging smp_processor_id() usage

When a spinlock debugging check hits, we print the CPU number as an
informational thing - but there is no guarantee that preemption is off
at that point - hence we should use raw_smp_processor_id().  Otherwise
DEBUG_PREEMPT will print a warning.

With this fix the warning goes away and only the spinlock-debugging info
is printed.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
lib/spinlock_debug.c