aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/include/asm/sn/arch.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/include/asm/sn/arch.h')
-rw-r--r--arch/ia64/include/asm/sn/arch.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ia64/include/asm/sn/arch.h b/arch/ia64/include/asm/sn/arch.h
index 7caa1f44cd95..31eb784866f8 100644
--- a/arch/ia64/include/asm/sn/arch.h
+++ b/arch/ia64/include/asm/sn/arch.h
@@ -57,7 +57,7 @@ struct sn_hub_info_s {
57 u16 nasid_bitmask; 57 u16 nasid_bitmask;
58}; 58};
59DECLARE_PER_CPU(struct sn_hub_info_s, __sn_hub_info); 59DECLARE_PER_CPU(struct sn_hub_info_s, __sn_hub_info);
60#define sn_hub_info (&__get_cpu_var(__sn_hub_info)) 60#define sn_hub_info this_cpu_ptr(&__sn_hub_info)
61#define is_shub2() (sn_hub_info->shub2) 61#define is_shub2() (sn_hub_info->shub2)
62#define is_shub1() (sn_hub_info->shub2 == 0) 62#define is_shub1() (sn_hub_info->shub2 == 0)
63 63
@@ -72,7 +72,7 @@ DECLARE_PER_CPU(struct sn_hub_info_s, __sn_hub_info);
72 * cpu. 72 * cpu.
73 */ 73 */
74DECLARE_PER_CPU(short, __sn_cnodeid_to_nasid[MAX_COMPACT_NODES]); 74DECLARE_PER_CPU(short, __sn_cnodeid_to_nasid[MAX_COMPACT_NODES]);
75#define sn_cnodeid_to_nasid (&__get_cpu_var(__sn_cnodeid_to_nasid[0])) 75#define sn_cnodeid_to_nasid this_cpu_ptr(&__sn_cnodeid_to_nasid[0])
76 76
77 77
78extern u8 sn_partition_id; 78extern u8 sn_partition_id;