Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114589
b: refs/heads/master
c: a880e76
h: refs/heads/master
i:
  114587: 892d81f
v: v3
  • Loading branch information
Roland Dreier authored and Benjamin Herrenschmidt committed Oct 7, 2008
1 parent 70fe36a commit 298230c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6ddc9d3200c25edddd7051f208dbbdd8e16f0734
refs/heads/master: a880e7623397bcb44877b012cd65baa11ad1bbf8
5 changes: 2 additions & 3 deletions trunk/arch/powerpc/mm/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,10 @@ static inline pte_t *virt_to_kpte(unsigned long vaddr)

int page_is_ram(unsigned long pfn)
{
unsigned long paddr = (pfn << PAGE_SHIFT);

#ifndef CONFIG_PPC64 /* XXX for now */
return paddr < __pa(high_memory);
return pfn < max_pfn;
#else
unsigned long paddr = (pfn << PAGE_SHIFT);
int i;
for (i=0; i < lmb.memory.cnt; i++) {
unsigned long base;
Expand Down

0 comments on commit 298230c

Please sign in to comment.