Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283317
b: refs/heads/master
c: 024f784
h: refs/heads/master
i:
  283315: 6b7f81b
v: v3
  • Loading branch information
Ben Hutchings authored and Linus Torvalds committed Jan 11, 2012
1 parent eb20f1f commit 53f6ca2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4f58cb90bcb04cfe18f524d1c9a65edef5eb3f51
refs/heads/master: 024f78462c3da710642a54939888a92e28704653
2 changes: 1 addition & 1 deletion trunk/drivers/base/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ extern int hypervisor_init(void);
static inline int hypervisor_init(void) { return 0; }
#endif
extern int platform_bus_init(void);
extern int cpu_dev_init(void);
extern void cpu_dev_init(void);

extern int bus_add_device(struct device *dev);
extern void bus_probe_device(struct device *dev);
Expand Down
13 changes: 5 additions & 8 deletions trunk/drivers/base/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* CPU subsystem support
*/

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/sched.h>
Expand Down Expand Up @@ -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;
}

0 comments on commit 53f6ca2

Please sign in to comment.