Skip to content

Commit

Permalink
[PATCH] voyager: fix boot panic by adding topology export
Browse files Browse the repository at this point in the history
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 <James.Bottomley@SteelEye.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
James Bottomley authored and Linus Torvalds committed Feb 24, 2006
1 parent c314b6f commit 8d5c822
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions arch/i386/mach-voyager/voyager_basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
#include <linux/delay.h>
#include <linux/reboot.h>
#include <linux/sysrq.h>
#include <linux/smp.h>
#include <linux/nodemask.h>
#include <asm/cpu.h>
#include <asm/io.h>
#include <asm/voyager.h>
#include <asm/vic.h>
Expand Down Expand Up @@ -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);

0 comments on commit 8d5c822

Please sign in to comment.