diff options
Diffstat (limited to 'include/asm-mips/mmzone.h')
-rw-r--r-- | include/asm-mips/mmzone.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/asm-mips/mmzone.h b/include/asm-mips/mmzone.h index e132975256b2..dc231c89bef9 100644 --- a/include/asm-mips/mmzone.h +++ b/include/asm-mips/mmzone.h | |||
@@ -13,17 +13,6 @@ | |||
13 | #define kvaddr_to_nid(kvaddr) pa_to_nid(__pa(kvaddr)) | 13 | #define kvaddr_to_nid(kvaddr) pa_to_nid(__pa(kvaddr)) |
14 | #define pfn_to_nid(pfn) pa_to_nid((pfn) << PAGE_SHIFT) | 14 | #define pfn_to_nid(pfn) pa_to_nid((pfn) << PAGE_SHIFT) |
15 | 15 | ||
16 | #define pfn_valid(pfn) \ | ||
17 | ({ \ | ||
18 | unsigned long __pfn = (pfn); \ | ||
19 | int __n = pfn_to_nid(__pfn); \ | ||
20 | ((__n >= 0) ? (__pfn < NODE_DATA(__n)->node_start_pfn + \ | ||
21 | NODE_DATA(__n)->node_spanned_pages) : 0);\ | ||
22 | }) | ||
23 | |||
24 | /* XXX: FIXME -- wli */ | ||
25 | #define kern_addr_valid(addr) (0) | ||
26 | |||
27 | #endif /* CONFIG_DISCONTIGMEM */ | 16 | #endif /* CONFIG_DISCONTIGMEM */ |
28 | 17 | ||
29 | #endif /* _ASM_MMZONE_H_ */ | 18 | #endif /* _ASM_MMZONE_H_ */ |