summaryrefslogtreecommitdiff
path: root/arch/sparc/include/asm/cpudata_32.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/include/asm/cpudata_32.h')
-rw-r--r--arch/sparc/include/asm/cpudata_32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/include/asm/cpudata_32.h b/arch/sparc/include/asm/cpudata_32.h
index 0300d94c25b3..05f366379f53 100644
--- a/arch/sparc/include/asm/cpudata_32.h
+++ b/arch/sparc/include/asm/cpudata_32.h
@@ -26,6 +26,6 @@ typedef struct {
DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data);
#define cpu_data(__cpu) per_cpu(__cpu_data, (__cpu))
-#define local_cpu_data() __get_cpu_var(__cpu_data)
+#define local_cpu_data() (*this_cpu_ptr(&__cpu_data))
#endif /* _SPARC_CPUDATA_H */