projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2c763e
)
MIPS: page.h: Provide more readable definition for PAGE_MASK.
author
Ralf Baechle
<ralf@linux-mips.org>
Tue, 16 Oct 2012 20:20:27 +0000
(22:20 +0200)
committer
Ralf Baechle
<ralf@linux-mips.org>
Wed, 12 Dec 2012 15:46:40 +0000
(16:46 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/page.h
patch
|
blob
|
history
diff --git
a/arch/mips/include/asm/page.h
b/arch/mips/include/asm/page.h
index
da9bd7d
..
c48a7f0
100644
(file)
--- a/
arch/mips/include/asm/page.h
+++ b/
arch/mips/include/asm/page.h
@@
-31,7
+31,7
@@
#define PAGE_SHIFT 16
#endif
#define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
-#define PAGE_MASK (~(
(1 << PAGE_SHIFT)
- 1))
+#define PAGE_MASK (~(
PAGE_SIZE
- 1))
#ifdef CONFIG_HUGETLB_PAGE
#define HPAGE_SHIFT (PAGE_SHIFT + PAGE_SHIFT - 3)