1 #ifndef _ASM_I386_CPU_H_
2 #define _ASM_I386_CPU_H_
4 #include <linux/device.h>
6 #include <linux/topology.h>
7 #include <linux/nodemask.h>
14 extern struct i386_cpu cpu_devices[NR_CPUS];
17 static inline int arch_register_cpu(int num){
18 struct node *parent = NULL;
21 int node = cpu_to_node(num);
22 if (node_online(node))
23 parent = &node_devices[node].node;
24 #endif /* CONFIG_NUMA */
26 return register_cpu(&cpu_devices[num].cpu, num, parent);
29 #endif /* _ASM_I386_CPU_H_ */