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