[PATCH] i386: change the 'no_control' field to 'hotpluggable' in the struct cpu
Change the 'no_control' field in the cpu struct to a more positive and better term 'hotpluggable'. And change(/cleanup) the logic accordingly. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by: Andi Kleen <ak@suse.de> Cc: Andi Kleen <ak@suse.de> Cc: "Li, Shaohua" <shaohua.li@intel.com> Signed-off-by: Andrew Morton <akpm@osdl.org>
This commit is contained in:

committed by
Andi Kleen

parent
fd6d7d2689
commit
72486f1f8f
@@ -31,11 +31,11 @@ int arch_register_cpu(int num)
|
||||
{
|
||||
#if defined (CONFIG_ACPI) && defined (CONFIG_HOTPLUG_CPU)
|
||||
/*
|
||||
* If CPEI cannot be re-targetted, and this is
|
||||
* CPEI target, then dont create the control file
|
||||
* If CPEI can be re-targetted or if this is not
|
||||
* CPEI target, then it is hotpluggable
|
||||
*/
|
||||
if (!can_cpei_retarget() && is_cpu_cpei_target(num))
|
||||
sysfs_cpus[num].cpu.no_control = 1;
|
||||
if (can_cpei_retarget() || !is_cpu_cpei_target(num))
|
||||
sysfs_cpus[num].cpu.hotpluggable = 1;
|
||||
map_cpu_to_node(num, node_cpuid[num].nid);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user