aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/base.h2
-rw-r--r--drivers/base/cpu.c13
2 files changed, 6 insertions, 9 deletions
diff --git a/drivers/base/base.h b/drivers/base/base.h
index 7a6ae4228761..b858dfd9a37c 100644
--- a/drivers/base/base.h
+++ b/drivers/base/base.h
@@ -94,7 +94,7 @@ extern int hypervisor_init(void);
94static inline int hypervisor_init(void) { return 0; } 94static inline int hypervisor_init(void) { return 0; }
95#endif 95#endif
96extern int platform_bus_init(void); 96extern int platform_bus_init(void);
97extern int cpu_dev_init(void); 97extern void cpu_dev_init(void);
98 98
99extern int bus_add_device(struct device *dev); 99extern int bus_add_device(struct device *dev);
100extern void bus_probe_device(struct device *dev); 100extern void bus_probe_device(struct device *dev);
diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c
index 9a5578efbc93..bba70d08be6a 100644
--- a/drivers/base/cpu.c
+++ b/drivers/base/cpu.c
@@ -2,6 +2,7 @@
2 * CPU subsystem support 2 * CPU subsystem support
3 */ 3 */
4 4
5#include <linux/kernel.h>
5#include <linux/module.h> 6#include <linux/module.h>
6#include <linux/init.h> 7#include <linux/init.h>
7#include <linux/sched.h> 8#include <linux/sched.h>
@@ -274,16 +275,12 @@ bool cpu_is_hotpluggable(unsigned cpu)
274} 275}
275EXPORT_SYMBOL_GPL(cpu_is_hotpluggable); 276EXPORT_SYMBOL_GPL(cpu_is_hotpluggable);
276 277
277int __init cpu_dev_init(void) 278void __init cpu_dev_init(void)
278{ 279{
279 int err; 280 if (subsys_system_register(&cpu_subsys, cpu_root_attr_groups))
280 281 panic("Failed to register CPU subsystem");
281 err = subsys_system_register(&cpu_subsys, cpu_root_attr_groups);
282 if (err)
283 return err;
284 282
285#if defined(CONFIG_SCHED_MC) || defined(CONFIG_SCHED_SMT) 283#if defined(CONFIG_SCHED_MC) || defined(CONFIG_SCHED_SMT)
286 err = sched_create_sysfs_power_savings_entries(cpu_subsys.dev_root); 284 sched_create_sysfs_power_savings_entries(cpu_subsys.dev_root);
287#endif 285#endif
288 return err;
289} 286}