Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154866
b: refs/heads/master
c: baf9227
h: refs/heads/master
v: v3
  • Loading branch information
Ralf Baechle committed Jul 3, 2009
1 parent ea6ce65 commit 14a99ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 01a6221a6a51ec47b9ae3ed42c396f98dd488c7e
refs/heads/master: baf922780251d12bc1c24c83df60c4c278abb745
9 changes: 8 additions & 1 deletion trunk/arch/mips/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,14 @@ typedef struct { unsigned long pgprot; } pgprot_t;

#ifdef CONFIG_FLATMEM

#define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && (pfn) < max_mapnr)
#define pfn_valid(pfn) \
({ \
unsigned long __pfn = (pfn); \
/* avoid <linux/bootmem.h> include hell */ \
extern unsigned long min_low_pfn; \
\
__pfn >= min_low_pfn && __pfn < max_mapnr; \
})

#elif defined(CONFIG_SPARSEMEM)

Expand Down

0 comments on commit 14a99ac

Please sign in to comment.