aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cpu.c')
-rw-r--r--kernel/cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c
index 9124669f4586..241064a32241 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -258,7 +258,7 @@ static cpumask_t frozen_cpus;
258 258
259int disable_nonboot_cpus(void) 259int disable_nonboot_cpus(void)
260{ 260{
261 int cpu, first_cpu, error; 261 int cpu, first_cpu, error = 0;
262 262
263 mutex_lock(&cpu_add_remove_lock); 263 mutex_lock(&cpu_add_remove_lock);
264 first_cpu = first_cpu(cpu_present_map); 264 first_cpu = first_cpu(cpu_present_map);
@@ -294,7 +294,7 @@ int disable_nonboot_cpus(void)
294 /* Make sure the CPUs won't be enabled by someone else */ 294 /* Make sure the CPUs won't be enabled by someone else */
295 cpu_hotplug_disabled = 1; 295 cpu_hotplug_disabled = 1;
296 } else { 296 } else {
297 printk(KERN_ERR "Non-boot CPUs are not disabled"); 297 printk(KERN_ERR "Non-boot CPUs are not disabled\n");
298 } 298 }
299out: 299out:
300 mutex_unlock(&cpu_add_remove_lock); 300 mutex_unlock(&cpu_add_remove_lock);