cpumask: export cpumask_of_cpu_map
[deliverable/linux.git] / kernel / stop_machine.c
index 738b411ff2d33dee86042404917640bcb2932ed5..ba9b2054ecbdb99bbb868b4f9c01af0bb2ce2c30 100644 (file)
@@ -33,9 +33,8 @@ static int stopmachine(void *cpu)
 {
        int irqs_disabled = 0;
        int prepared = 0;
-       cpumask_of_cpu_ptr(cpumask, (int)(long)cpu);
 
-       set_cpus_allowed_ptr(current, cpumask);
+       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. */
This page took 0.027208 seconds and 5 git commands to generate.