From: James Bottomley Date: Fri, 24 Feb 2006 21:04:10 +0000 (-0800) Subject: [PATCH] voyager: fix boot panic by adding topology export X-Git-Tag: v2.6.16-rc5~39 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8d5c822b2920be9016806f61fd552d2301cfa2fc;p=linux-2.6-omap-h63xx.git [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: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/mach-voyager/voyager_basic.c b/arch/i386/mach-voyager/voyager_basic.c index aa49a33a572..6761d294f26 100644 --- a/arch/i386/mach-voyager/voyager_basic.c +++ b/arch/i386/mach-voyager/voyager_basic.c @@ -23,6 +23,9 @@ #include #include #include +#include +#include +#include #include #include #include @@ -329,3 +332,15 @@ void machine_power_off(void) 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);