]> nv-tegra.nvidia Code Review - linux-3.10.git/commitdiff
[PATCH] swsusp: SMP fix
authorAlexander Nyberg <alexn@dsv.su.se>
Sat, 16 Apr 2005 22:25:39 +0000 (15:25 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:25:39 +0000 (15:25 -0700)
Fix some smp_processor_id-in-preemptible warnings

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/power/smp.c

index 7fa7f6e2b7fb68be1b382ef8db73daf7d46a7933..cba3584b80fefa88b3fdcb8d938800b08d44abeb 100644 (file)
@@ -46,13 +46,13 @@ static cpumask_t oldmask;
 
 void disable_nonboot_cpus(void)
 {
-       printk("Freezing CPUs (at %d)", smp_processor_id());
        oldmask = current->cpus_allowed;
        set_cpus_allowed(current, cpumask_of_cpu(0));
+       printk("Freezing CPUs (at %d)", _smp_processor_id());
        current->state = TASK_INTERRUPTIBLE;
        schedule_timeout(HZ);
        printk("...");
-       BUG_ON(smp_processor_id() != 0);
+       BUG_ON(_smp_processor_id() != 0);
 
        /* FIXME: for this to work, all the CPUs must be running
         * "idle" thread (or we deadlock). Is that guaranteed? */