Jaswinder Singh Rajput | 0687903 | 2009-01-10 12:17:37 +0530 | [diff] [blame] | 1 | #ifndef _ASM_X86_CPUMASK_H |
| 2 | #define _ASM_X86_CPUMASK_H |
| 3 | #ifndef __ASSEMBLY__ |
| 4 | #include <linux/cpumask.h> |
| 5 | |
| 6 | #ifdef CONFIG_X86_64 |
| 7 | |
| 8 | extern cpumask_var_t cpu_callin_mask; |
Jaswinder Singh Rajput | fb8fd07 | 2009-01-10 12:20:24 +0530 | [diff] [blame] | 9 | extern cpumask_var_t cpu_callout_mask; |
Jaswinder Singh Rajput | 493f6ca | 2009-01-10 12:48:22 +0530 | [diff] [blame] | 10 | extern cpumask_var_t cpu_initialized_mask; |
Jaswinder Singh Rajput | 52811d8 | 2009-01-10 12:58:50 +0530 | [diff] [blame] | 11 | extern cpumask_var_t cpu_sibling_setup_mask; |
Jaswinder Singh Rajput | 0687903 | 2009-01-10 12:17:37 +0530 | [diff] [blame] | 12 | |
Brian Gerst | 2f2f52b | 2009-01-27 12:56:47 +0900 | [diff] [blame^] | 13 | extern void setup_cpu_local_masks(void); |
| 14 | |
Jaswinder Singh Rajput | 0687903 | 2009-01-10 12:17:37 +0530 | [diff] [blame] | 15 | #else /* CONFIG_X86_32 */ |
| 16 | |
| 17 | extern cpumask_t cpu_callin_map; |
Jaswinder Singh Rajput | fb8fd07 | 2009-01-10 12:20:24 +0530 | [diff] [blame] | 18 | extern cpumask_t cpu_callout_map; |
Jaswinder Singh Rajput | 493f6ca | 2009-01-10 12:48:22 +0530 | [diff] [blame] | 19 | extern cpumask_t cpu_initialized; |
Jaswinder Singh Rajput | 52811d8 | 2009-01-10 12:58:50 +0530 | [diff] [blame] | 20 | extern cpumask_t cpu_sibling_setup_map; |
Jaswinder Singh Rajput | 0687903 | 2009-01-10 12:17:37 +0530 | [diff] [blame] | 21 | |
| 22 | #define cpu_callin_mask ((struct cpumask *)&cpu_callin_map) |
Jaswinder Singh Rajput | fb8fd07 | 2009-01-10 12:20:24 +0530 | [diff] [blame] | 23 | #define cpu_callout_mask ((struct cpumask *)&cpu_callout_map) |
Jaswinder Singh Rajput | 493f6ca | 2009-01-10 12:48:22 +0530 | [diff] [blame] | 24 | #define cpu_initialized_mask ((struct cpumask *)&cpu_initialized) |
Jaswinder Singh Rajput | 52811d8 | 2009-01-10 12:58:50 +0530 | [diff] [blame] | 25 | #define cpu_sibling_setup_mask ((struct cpumask *)&cpu_sibling_setup_map) |
Jaswinder Singh Rajput | 0687903 | 2009-01-10 12:17:37 +0530 | [diff] [blame] | 26 | |
Brian Gerst | 2f2f52b | 2009-01-27 12:56:47 +0900 | [diff] [blame^] | 27 | static inline void setup_cpu_local_masks(void) { } |
| 28 | |
Jaswinder Singh Rajput | 0687903 | 2009-01-10 12:17:37 +0530 | [diff] [blame] | 29 | #endif /* CONFIG_X86_32 */ |
| 30 | |
| 31 | #endif /* __ASSEMBLY__ */ |
| 32 | #endif /* _ASM_X86_CPUMASK_H */ |