]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
MIPS: page.h: Provide more readable definition for PAGE_MASK.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 16 Oct 2012 20:20:27 +0000 (22:20 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 16 Oct 2012 20:27:38 +0000 (22:27 +0200)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/page.h

index da9bd7d270d18a761f74f6168653d2eb16da7118..c48a7f0bcf3cf438126e7f11c78ee814b585efe4 100644 (file)
@@ -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)