diff options
author | Steven J. Hill <Steven.Hill@imgtec.com> | 2015-02-19 10:18:50 -0600 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-02-19 22:15:59 +0100 |
commit | 05f9883a2899d50ff96f05b7a76b7597009b0680 (patch) | |
tree | e170af7fc66296bfaec961497747bf624ae16a0f /arch/mips/include/asm/pgtable.h | |
parent | 661af35e5fd878f915ed05dbbfe383f64133f98c (diff) | |
download | op-kernel-dev-05f9883a2899d50ff96f05b7a76b7597009b0680.zip op-kernel-dev-05f9883a2899d50ff96f05b7a76b7597009b0680.tar.gz |
MIPS: Usage and cosmetic cleanups of page table bits.
* Clean up white spaces and tabs.
* Get rid of remaining hardcoded values for calculating
shifts and masks.
* Get rid of redundant macro values.
* Do not use page table bits directly in #ifdef's.
Signed-off-by: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9287/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/pgtable.h')
-rw-r--r-- | arch/mips/include/asm/pgtable.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/include/asm/pgtable.h b/arch/mips/include/asm/pgtable.h index 845016d..3435e84 100644 --- a/arch/mips/include/asm/pgtable.h +++ b/arch/mips/include/asm/pgtable.h @@ -344,7 +344,7 @@ static inline pte_t pte_mkyoung(pte_t pte) return pte; } -#ifdef _PAGE_HUGE +#ifdef CONFIG_MIPS_HUGE_TLB_SUPPORT static inline int pte_huge(pte_t pte) { return pte_val(pte) & _PAGE_HUGE; } static inline pte_t pte_mkhuge(pte_t pte) @@ -352,7 +352,7 @@ static inline pte_t pte_mkhuge(pte_t pte) pte_val(pte) |= _PAGE_HUGE; return pte; } -#endif /* _PAGE_HUGE */ +#endif /* CONFIG_MIPS_HUGE_TLB_SUPPORT */ #endif static inline int pte_special(pte_t pte) { return 0; } static inline pte_t pte_mkspecial(pte_t pte) { return pte; } |