]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/stop_machine.c
[XFRM] xfrm_policy: kill some bloat
[linux-2.6-omap-h63xx.git] / kernel / stop_machine.c
index 319821ef78afc9e0a7488cbf9b2ea1c5853b65c1..51b5ee53571a63558cef49075de15c4dc25396a6 100644 (file)
@@ -203,13 +203,13 @@ int stop_machine_run(int (*fn)(void *), void *data, unsigned int cpu)
        int ret;
 
        /* No CPUs can come up or down during this. */
-       lock_cpu_hotplug();
+       get_online_cpus();
        p = __stop_machine_run(fn, data, cpu);
        if (!IS_ERR(p))
                ret = kthread_stop(p);
        else
                ret = PTR_ERR(p);
-       unlock_cpu_hotplug();
+       put_online_cpus();
 
        return ret;
 }