Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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> |
Zwane Mwaikambo | f370513 | 2005-06-25 14:54:50 -0700 | [diff] [blame] | 8 | #include <linux/percpu.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | struct i386_cpu { |
| 11 | struct cpu cpu; |
| 12 | }; |
| 13 | extern int arch_register_cpu(int num); |
| 14 | #ifdef CONFIG_HOTPLUG_CPU |
| 15 | extern void arch_unregister_cpu(int); |
Siddha, Suresh B | fd6d7d2 | 2006-12-07 02:14:10 +0100 | [diff] [blame] | 16 | extern int enable_cpu_hotplug; |
| 17 | #else |
| 18 | #define enable_cpu_hotplug 0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | #endif |
| 20 | |
Zwane Mwaikambo | f370513 | 2005-06-25 14:54:50 -0700 | [diff] [blame] | 21 | DECLARE_PER_CPU(int, cpu_state); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | #endif /* _ASM_I386_CPU_H_ */ |