diff options
author | Siddha, Suresh B <suresh.b.siddha@intel.com> | 2006-12-06 20:14:10 -0500 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2006-12-06 20:14:10 -0500 |
commit | 72486f1f8f0a2bc828b9d30cf4690cf2dd6807fc (patch) | |
tree | d99077e8758eb7aa87554186a6ae81e9cd81589a /drivers/base/cpu.c | |
parent | fd6d7d26897dec834d0b9fbdc59819b0332a1257 (diff) |
[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>
Diffstat (limited to 'drivers/base/cpu.c')
-rw-r--r-- | drivers/base/cpu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 1f745f12f94e..7fd095efaebd 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c | |||
@@ -104,8 +104,8 @@ static SYSDEV_ATTR(crash_notes, 0400, show_crash_notes, NULL); | |||
104 | 104 | ||
105 | /* | 105 | /* |
106 | * register_cpu - Setup a driverfs device for a CPU. | 106 | * register_cpu - Setup a driverfs device for a CPU. |
107 | * @cpu - Callers can set the cpu->no_control field to 1, to indicate not to | 107 | * @cpu - cpu->hotpluggable field set to 1 will generate a control file in |
108 | * generate a control file in sysfs for this CPU. | 108 | * sysfs for this CPU. |
109 | * @num - CPU number to use when creating the device. | 109 | * @num - CPU number to use when creating the device. |
110 | * | 110 | * |
111 | * Initialize and register the CPU device. | 111 | * Initialize and register the CPU device. |
@@ -119,7 +119,7 @@ int __devinit register_cpu(struct cpu *cpu, int num) | |||
119 | 119 | ||
120 | error = sysdev_register(&cpu->sysdev); | 120 | error = sysdev_register(&cpu->sysdev); |
121 | 121 | ||
122 | if (!error && !cpu->no_control) | 122 | if (!error && cpu->hotpluggable) |
123 | register_cpu_control(cpu); | 123 | register_cpu_control(cpu); |
124 | if (!error) | 124 | if (!error) |
125 | cpu_sys_devices[num] = &cpu->sysdev; | 125 | cpu_sys_devices[num] = &cpu->sysdev; |