blob: a7f3c75f8ad7cd9caa33f4965240dcf768ee481c [file] [log] [blame]
Jaswinder Singh Rajput06879032009-01-10 12:17:37 +05301#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
8extern cpumask_var_t cpu_callin_mask;
Jaswinder Singh Rajputfb8fd072009-01-10 12:20:24 +05309extern cpumask_var_t cpu_callout_mask;
Jaswinder Singh Rajput493f6ca2009-01-10 12:48:22 +053010extern cpumask_var_t cpu_initialized_mask;
Jaswinder Singh Rajput52811d82009-01-10 12:58:50 +053011extern cpumask_var_t cpu_sibling_setup_mask;
Jaswinder Singh Rajput06879032009-01-10 12:17:37 +053012
Brian Gerst2f2f52b2009-01-27 12:56:47 +090013extern void setup_cpu_local_masks(void);
14
Jaswinder Singh Rajput06879032009-01-10 12:17:37 +053015#else /* CONFIG_X86_32 */
16
17extern cpumask_t cpu_callin_map;
Jaswinder Singh Rajputfb8fd072009-01-10 12:20:24 +053018extern cpumask_t cpu_callout_map;
Jaswinder Singh Rajput493f6ca2009-01-10 12:48:22 +053019extern cpumask_t cpu_initialized;
Jaswinder Singh Rajput52811d82009-01-10 12:58:50 +053020extern cpumask_t cpu_sibling_setup_map;
Jaswinder Singh Rajput06879032009-01-10 12:17:37 +053021
22#define cpu_callin_mask ((struct cpumask *)&cpu_callin_map)
Jaswinder Singh Rajputfb8fd072009-01-10 12:20:24 +053023#define cpu_callout_mask ((struct cpumask *)&cpu_callout_map)
Jaswinder Singh Rajput493f6ca2009-01-10 12:48:22 +053024#define cpu_initialized_mask ((struct cpumask *)&cpu_initialized)
Jaswinder Singh Rajput52811d82009-01-10 12:58:50 +053025#define cpu_sibling_setup_mask ((struct cpumask *)&cpu_sibling_setup_map)
Jaswinder Singh Rajput06879032009-01-10 12:17:37 +053026
Brian Gerst2f2f52b2009-01-27 12:56:47 +090027static inline void setup_cpu_local_masks(void) { }
28
Jaswinder Singh Rajput06879032009-01-10 12:17:37 +053029#endif /* CONFIG_X86_32 */
30
31#endif /* __ASSEMBLY__ */
32#endif /* _ASM_X86_CPUMASK_H */