]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/stop_machine.c
BKL: revert back to the old spinlock implementation
[linux-2.6-omap-h63xx.git] / kernel / stop_machine.c
index 3da3c2c6702dd02944c1455622414ea3600f02cb..0101aeef7ed79fbd62aba8d1043976a110cf1f6e 100644 (file)
@@ -34,7 +34,7 @@ static int stopmachine(void *cpu)
        int irqs_disabled = 0;
        int prepared = 0;
 
-       set_cpus_allowed(current, cpumask_of_cpu((int)(long)cpu));
+       set_cpus_allowed_ptr(current, &cpumask_of_cpu((int)(long)cpu));
 
        /* Ack: we are alive */
        smp_mb(); /* Theoretically the ack = 0 might not be on this CPU yet. */
@@ -134,8 +134,7 @@ static void restart_machine(void)
        preempt_enable_no_resched();
 }
 
-struct stop_machine_data
-{
+struct stop_machine_data {
        int (*fn)(void *);
        void *data;
        struct completion done;