diff options
Diffstat (limited to 'drivers/base')
-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; |