|
@@ -564,11 +564,6 @@ static inline int valid_section_nr(unsigned long nr)
|
|
|
return valid_section(__nr_to_section(nr));
|
|
|
}
|
|
|
|
|
|
-/*
|
|
|
- * Given a kernel address, find the home node of the underlying memory.
|
|
|
- */
|
|
|
-#define kvaddr_to_nid(kaddr) pfn_to_nid(__pa(kaddr) >> PAGE_SHIFT)
|
|
|
-
|
|
|
static inline struct mem_section *__pfn_to_section(unsigned long pfn)
|
|
|
{
|
|
|
return __nr_to_section(pfn_to_section_nr(pfn));
|