2 * arch/ia64/dig/topology.c
3 * Popuate driverfs with topology information.
4 * Derived entirely from i386/mach-default.c
5 * Intel Corporation - Ashok Raj
7 #include <linux/init.h>
9 #include <linux/cpumask.h>
10 #include <linux/percpu.h>
11 #include <linux/notifier.h>
12 #include <linux/cpu.h>
15 static DEFINE_PER_CPU(struct ia64_cpu, cpu_devices);
18 * First Pass: simply borrowed code for now. Later should hook into
19 * hotplug notification for node/cpu/memory as applicable
22 static int arch_register_cpu(int num)
24 struct node *parent = NULL;
27 //parent = &node_devices[cpu_to_node(num)].node;
30 return register_cpu(&per_cpu(cpu_devices,num).cpu, num, parent);
33 static int __init topology_init(void)
43 subsys_initcall(topology_init);