Commit b67c0d12 authored by Anton Blanchard's avatar Anton Blanchard

ppc64: kill node_startnr, implement node_end_pfn

parent 31d71284
...@@ -53,7 +53,6 @@ static inline int pa_to_nid(unsigned long pa) ...@@ -53,7 +53,6 @@ static inline int pa_to_nid(unsigned long pa)
*/ */
#define NODE_DATA(nid) (&node_data[nid]) #define NODE_DATA(nid) (&node_data[nid])
#define node_startnr(nid) (NODE_DATA(nid)->node_start_mapnr)
#define node_size(nid) (NODE_DATA(nid)->node_size) #define node_size(nid) (NODE_DATA(nid)->node_size)
#define node_localnr(pfn, nid) ((pfn) - NODE_DATA(nid)->node_start_pfn) #define node_localnr(pfn, nid) ((pfn) - NODE_DATA(nid)->node_start_pfn)
...@@ -87,6 +86,7 @@ static inline int __cpu_to_node(int cpu) ...@@ -87,6 +86,7 @@ static inline int __cpu_to_node(int cpu)
#define node_mem_map(nid) (NODE_DATA(nid)->node_mem_map) #define node_mem_map(nid) (NODE_DATA(nid)->node_mem_map)
#define node_start_pfn(nid) (NODE_DATA(nid)->node_start_pfn) #define node_start_pfn(nid) (NODE_DATA(nid)->node_start_pfn)
#define node_end_pfn(nid) (NODE_DATA(nid)->node_end_pfn)
#define local_mapnr(kvaddr) \ #define local_mapnr(kvaddr) \
( (__pa(kvaddr) >> PAGE_SHIFT) - node_start_pfn(kvaddr_to_nid(kvaddr)) ( (__pa(kvaddr) >> PAGE_SHIFT) - node_start_pfn(kvaddr_to_nid(kvaddr))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment