]> Git Repo - linux.git/blobdiff - kernel/cpu.c
x86, intel_txt: clean up the impact on generic code, unbreak non-x86
[linux.git] / kernel / cpu.c
index 395b6974dc8d56ccb2d91ede756069fe9b10c975..67a60076dd7e2f7eb81b50970a7f600d0011cc80 100644 (file)
@@ -34,14 +34,11 @@ static struct {
         * an ongoing cpu hotplug operation.
         */
        int refcount;
-} cpu_hotplug;
-
-void __init cpu_hotplug_init(void)
-{
-       cpu_hotplug.active_writer = NULL;
-       mutex_init(&cpu_hotplug.lock);
-       cpu_hotplug.refcount = 0;
-}
+} cpu_hotplug = {
+       .active_writer = NULL,
+       .lock = __MUTEX_INITIALIZER(cpu_hotplug.lock),
+       .refcount = 0,
+};
 
 #ifdef CONFIG_HOTPLUG_CPU
 
@@ -404,6 +401,7 @@ int disable_nonboot_cpus(void)
                        break;
                }
        }
+
        if (!error) {
                BUG_ON(num_online_cpus() > 1);
                /* Make sure the CPUs won't be enabled by someone else */
This page took 0.029231 seconds and 4 git commands to generate.