diff options
author | Paul Burton <paul.burton@imgtec.com> | 2016-04-19 10:25:02 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2016-05-13 15:30:25 +0200 |
commit | 694977006a7ba71e33e1f5df4f66ffd5ae19ec84 (patch) | |
tree | d0c5cda178229fb93fa29268aa9f2267d57d48b5 /arch/mips/mm | |
parent | MIPS: Remove redundant asm/pgtable-bits.h inclusions (diff) | |
download | linux-694977006a7ba71e33e1f5df4f66ffd5ae19ec84.tar.xz linux-694977006a7ba71e33e1f5df4f66ffd5ae19ec84.zip |
MIPS: Use enums to make asm/pgtable-bits.h readable
asm/pgtable-bits.h has grown to become an unreadable mess of #ifdef
directives defining bits conditionally upon other bits all at the
preprocessing stage, for no good reason.
Instead of having quite so many #ifdef's, simply use enums to provide
sequential numbering for bit shifts, without having to keep track
manually of what the last bit defined was. Masks are defined separately,
after the shifts, which allows for most of their definitions to be
reused for all systems rather than duplicated.
This patch is not intended to make any behavioural change to the code -
all bits should be used in the same way they were before this patch.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Cc: Maciej W. Rozycki <macro@linux-mips.org>
Cc: Alex Smith <alex.smith@imgtec.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/13115/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mm')
0 files changed, 0 insertions, 0 deletions