upgrade to linux 2.6.10-1.12_FC2
[linux-2.6.git] / include / asm-i386 / cpu.h
1 #ifndef _ASM_I386_CPU_H_
2 #define _ASM_I386_CPU_H_
3
4 #include <linux/device.h>
5 #include <linux/cpu.h>
6 #include <linux/topology.h>
7 #include <linux/nodemask.h>
8
9 #include <asm/node.h>
10
11 struct i386_cpu {
12         struct cpu cpu;
13 };
14 extern struct i386_cpu cpu_devices[NR_CPUS];
15
16
17 static inline int arch_register_cpu(int num){
18         struct node *parent = NULL;
19         
20 #ifdef CONFIG_NUMA
21         int node = cpu_to_node(num);
22         if (node_online(node))
23                 parent = &node_devices[node].node;
24 #endif /* CONFIG_NUMA */
25
26         return register_cpu(&cpu_devices[num].cpu, num, parent);
27 }
28
29 #endif /* _ASM_I386_CPU_H_ */