diff options
Diffstat (limited to 'arch/powerpc/mm/mem.c')
-rw-r--r-- | arch/powerpc/mm/mem.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index 1c93c255873b..98d7bf99533a 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c | |||
@@ -75,11 +75,10 @@ static inline pte_t *virt_to_kpte(unsigned long vaddr) | |||
75 | 75 | ||
76 | int page_is_ram(unsigned long pfn) | 76 | int page_is_ram(unsigned long pfn) |
77 | { | 77 | { |
78 | unsigned long paddr = (pfn << PAGE_SHIFT); | ||
79 | |||
80 | #ifndef CONFIG_PPC64 /* XXX for now */ | 78 | #ifndef CONFIG_PPC64 /* XXX for now */ |
81 | return paddr < __pa(high_memory); | 79 | return pfn < max_pfn; |
82 | #else | 80 | #else |
81 | unsigned long paddr = (pfn << PAGE_SHIFT); | ||
83 | int i; | 82 | int i; |
84 | for (i=0; i < lmb.memory.cnt; i++) { | 83 | for (i=0; i < lmb.memory.cnt; i++) { |
85 | unsigned long base; | 84 | unsigned long base; |