out:
kfree(info);
printk(KERN_INFO "CPUs: %d configured, %d standby\n", c_cpus, s_cpus);
out:
kfree(info);
printk(KERN_INFO "CPUs: %d configured, %d standby\n", c_cpus, s_cpus);
return -EINVAL;
mutex_lock(&smp_cpu_state_mutex);
return -EINVAL;
mutex_lock(&smp_cpu_state_mutex);
rc = -EBUSY;
if (cpu_online(cpu))
goto out;
rc = -EBUSY;
if (cpu_online(cpu))
goto out;
mutex_unlock(&smp_cpu_state_mutex);
return rc ? rc : count;
}
mutex_unlock(&smp_cpu_state_mutex);
return rc ? rc : count;
}
int rc;
mutex_lock(&smp_cpu_state_mutex);
int rc;
mutex_lock(&smp_cpu_state_mutex);
newcpus = cpu_present_map;
rc = smp_rescan_cpus();
if (rc)
newcpus = cpu_present_map;
rc = smp_rescan_cpus();
if (rc)
mutex_unlock(&smp_cpu_state_mutex);
return rc ? rc : count;
}
mutex_unlock(&smp_cpu_state_mutex);
return rc ? rc : count;
}