H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 1 | #ifndef _ASM_X86_CPU_H |
| 2 | #define _ASM_X86_CPU_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
Jaswinder Singh Rajput | 6e5385d | 2009-01-07 18:11:35 +0530 | [diff] [blame] | 10 | #ifdef CONFIG_SMP |
| 11 | |
| 12 | extern void prefill_possible_map(void); |
| 13 | |
| 14 | #else /* CONFIG_SMP */ |
| 15 | |
| 16 | static inline void prefill_possible_map(void) {} |
| 17 | |
Jaswinder Singh Rajput | f472cdb | 2009-01-07 21:34:25 +0530 | [diff] [blame^] | 18 | #define stack_smp_processor_id() 0 |
| 19 | |
Jaswinder Singh Rajput | 6e5385d | 2009-01-07 18:11:35 +0530 | [diff] [blame] | 20 | #endif /* CONFIG_SMP */ |
| 21 | |
travis@sgi.com | 30964d5 | 2008-01-30 13:33:11 +0100 | [diff] [blame] | 22 | struct x86_cpu { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | struct cpu cpu; |
| 24 | }; |
Alexander van Heukelum | d987402 | 2008-02-01 17:49:43 +0100 | [diff] [blame] | 25 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | #ifdef CONFIG_HOTPLUG_CPU |
Alexander van Heukelum | d987402 | 2008-02-01 17:49:43 +0100 | [diff] [blame] | 27 | extern int arch_register_cpu(int num); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | extern void arch_unregister_cpu(int); |
| 29 | #endif |
| 30 | |
Zwane Mwaikambo | f370513 | 2005-06-25 14:54:50 -0700 | [diff] [blame] | 31 | DECLARE_PER_CPU(int, cpu_state); |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 32 | #endif /* _ASM_X86_CPU_H */ |