|
@@ -2,6 +2,7 @@
|
|
|
* CPU subsystem support
|
|
|
*/
|
|
|
|
|
|
+#include <linux/kernel.h>
|
|
|
#include <linux/module.h>
|
|
|
#include <linux/init.h>
|
|
|
#include <linux/sched.h>
|
|
@@ -274,16 +275,12 @@ bool cpu_is_hotpluggable(unsigned cpu)
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(cpu_is_hotpluggable);
|
|
|
|
|
|
-int __init cpu_dev_init(void)
|
|
|
+void __init cpu_dev_init(void)
|
|
|
{
|
|
|
- int err;
|
|
|
-
|
|
|
- err = subsys_system_register(&cpu_subsys, cpu_root_attr_groups);
|
|
|
- if (err)
|
|
|
- return err;
|
|
|
+ if (subsys_system_register(&cpu_subsys, cpu_root_attr_groups))
|
|
|
+ panic("Failed to register CPU subsystem");
|
|
|
|
|
|
#if defined(CONFIG_SCHED_MC) || defined(CONFIG_SCHED_SMT)
|
|
|
- err = sched_create_sysfs_power_savings_entries(cpu_subsys.dev_root);
|
|
|
+ sched_create_sysfs_power_savings_entries(cpu_subsys.dev_root);
|
|
|
#endif
|
|
|
- return err;
|
|
|
}
|