Commit 8d5c822b authored by James Bottomley's avatar James Bottomley Committed by Linus Torvalds

[PATCH] voyager: fix boot panic by adding topology export

It looks like I can't get away without exporting topology functions from
voyager any longer, so add them to the voyager subarchitecture.
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c314b6f1
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/reboot.h> #include <linux/reboot.h>
#include <linux/sysrq.h> #include <linux/sysrq.h>
#include <linux/smp.h>
#include <linux/nodemask.h>
#include <asm/cpu.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/voyager.h> #include <asm/voyager.h>
#include <asm/vic.h> #include <asm/vic.h>
...@@ -329,3 +332,15 @@ void machine_power_off(void) ...@@ -329,3 +332,15 @@ void machine_power_off(void)
pm_power_off(); pm_power_off();
} }
static struct i386_cpu cpu_devices[NR_CPUS];
static int __init topology_init(void)
{
int i;
for_each_present_cpu(i)
register_cpu(&cpu_devices[i].cpu, i, NULL);
return 0;
}
subsys_initcall(topology_init);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment