X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fbase%2Fcpu.c;h=fe7ef339414441afc3592994d00dc97a99e0d0d5;hb=7699acd1341c63fdbcfc56994fb2989ec59d2a43;hp=4bef76a2f3f2a7611ff0dcbca79c8d774d7a7255;hpb=d120cfb544ed6161b9d32fb6c4648c471807ee6b;p=linux-2.6-omap-h63xx.git diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 4bef76a2f3f..fe7ef339414 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include @@ -102,9 +103,9 @@ static SYSDEV_ATTR(crash_notes, 0400, show_crash_notes, NULL); #endif /* - * register_cpu - Setup a driverfs device for a CPU. - * @cpu - Callers can set the cpu->no_control field to 1, to indicate not to - * generate a control file in sysfs for this CPU. + * register_cpu - Setup a sysfs device for a CPU. + * @cpu - cpu->hotpluggable field set to 1 will generate a control file in + * sysfs for this CPU. * @num - CPU number to use when creating the device. * * Initialize and register the CPU device. @@ -118,7 +119,7 @@ int __devinit register_cpu(struct cpu *cpu, int num) error = sysdev_register(&cpu->sysdev); - if (!error && !cpu->no_control) + if (!error && cpu->hotpluggable) register_cpu_control(cpu); if (!error) cpu_sys_devices[num] = &cpu->sysdev;