diff options
| -rw-r--r-- | arch/i386/mach-voyager/voyager_basic.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/i386/mach-voyager/voyager_basic.c b/arch/i386/mach-voyager/voyager_basic.c index aa49a33a572c..6761d294f260 100644 --- a/arch/i386/mach-voyager/voyager_basic.c +++ b/arch/i386/mach-voyager/voyager_basic.c | |||
| @@ -23,6 +23,9 @@ | |||
| 23 | #include <linux/delay.h> | 23 | #include <linux/delay.h> |
| 24 | #include <linux/reboot.h> | 24 | #include <linux/reboot.h> |
| 25 | #include <linux/sysrq.h> | 25 | #include <linux/sysrq.h> |
| 26 | #include <linux/smp.h> | ||
| 27 | #include <linux/nodemask.h> | ||
| 28 | #include <asm/cpu.h> | ||
| 26 | #include <asm/io.h> | 29 | #include <asm/io.h> |
| 27 | #include <asm/voyager.h> | 30 | #include <asm/voyager.h> |
| 28 | #include <asm/vic.h> | 31 | #include <asm/vic.h> |
| @@ -329,3 +332,15 @@ void machine_power_off(void) | |||
| 329 | pm_power_off(); | 332 | pm_power_off(); |
| 330 | } | 333 | } |
| 331 | 334 | ||
| 335 | static struct i386_cpu cpu_devices[NR_CPUS]; | ||
| 336 | |||
| 337 | static int __init topology_init(void) | ||
| 338 | { | ||
| 339 | int i; | ||
| 340 | |||
| 341 | for_each_present_cpu(i) | ||
| 342 | register_cpu(&cpu_devices[i].cpu, i, NULL); | ||
| 343 | return 0; | ||
| 344 | } | ||
| 345 | |||
| 346 | subsys_initcall(topology_init); | ||
