aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-ppc64/mmzone.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ppc64/mmzone.h')
-rw-r--r--include/asm-ppc64/mmzone.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/asm-ppc64/mmzone.h b/include/asm-ppc64/mmzone.h
index 0619a41a3c9d..cbfc5ecfe875 100644
--- a/include/asm-ppc64/mmzone.h
+++ b/include/asm-ppc64/mmzone.h
@@ -65,7 +65,6 @@ static inline int pa_to_nid(unsigned long pa)
65 */ 65 */
66#define kvaddr_to_nid(kaddr) pa_to_nid(__pa(kaddr)) 66#define kvaddr_to_nid(kaddr) pa_to_nid(__pa(kaddr))
67 67
68#define node_mem_map(nid) (NODE_DATA(nid)->node_mem_map)
69#define node_start_pfn(nid) (NODE_DATA(nid)->node_start_pfn) 68#define node_start_pfn(nid) (NODE_DATA(nid)->node_start_pfn)
70#define node_end_pfn(nid) (NODE_DATA(nid)->node_end_pfn) 69#define node_end_pfn(nid) (NODE_DATA(nid)->node_end_pfn)
71 70
@@ -76,7 +75,7 @@ static inline int pa_to_nid(unsigned long pa)
76#define discontigmem_pfn_to_page(pfn) \ 75#define discontigmem_pfn_to_page(pfn) \
77({ \ 76({ \
78 unsigned long __tmp = pfn; \ 77 unsigned long __tmp = pfn; \
79 (node_mem_map(pfn_to_nid(__tmp)) + \ 78 (NODE_DATA(pfn_to_nid(__tmp))->node_mem_map + \
80 node_localnr(__tmp, pfn_to_nid(__tmp))); \ 79 node_localnr(__tmp, pfn_to_nid(__tmp))); \
81}) 80})
82 81