]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/cpu.c
strict_strto* is not strict enough
[linux-2.6-omap-h63xx.git] / kernel / cpu.c
index 47fff3b63cbf5ac8f3cd92de1299a371a8e2d4dd..30e74dd6d01b3e9bbe3f096ad638eb3d1b89fb10 100644 (file)
@@ -269,8 +269,11 @@ out_release:
 
 int __ref cpu_down(unsigned int cpu)
 {
-       int err = 0;
+       int err;
 
+       err = stop_machine_create();
+       if (err)
+               return err;
        cpu_maps_update_begin();
 
        if (cpu_hotplug_disabled) {
@@ -297,6 +300,7 @@ int __ref cpu_down(unsigned int cpu)
 
 out:
        cpu_maps_update_done();
+       stop_machine_destroy();
        return err;
 }
 EXPORT_SYMBOL(cpu_down);