mtrr atomicity fix
authorAndrew Morton <akpm@linux-foundation.org>
Sun, 3 Jun 2007 20:50:40 +0000 (13:50 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 4 Jun 2007 20:25:09 +0000 (13:25 -0700)
commitd55873773165e6b4435d32c75c84888e38a5b03b
tree9a9fefe07e4d56d59777e27b4ee71dae221337c1
parent18c2c9fcb2ce6f5e6fc4a1746618e673862ccff2
mtrr atomicity fix

Rafael gets this on an SMP box with kernel preemption enabled, during
hibernation and restore (100% of the time):

Enabling non-boot CPUs ...
BUG: using smp_processor_id() in preemptible [00000001] code: bash/4514
caller is mtrr_save_state+0x9/0x40

Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/i386/kernel/cpu/mtrr/main.c