MIPS: mm: Simplify build_update_entries
authorPaul Burton <[email protected]>
Tue, 19 Apr 2016 08:25:09 +0000 (09:25 +0100)
committerRalf Baechle <[email protected]>
Fri, 13 May 2016 13:30:25 +0000 (15:30 +0200)
commit2caa89b49b21737b2b7b6fce37cb323535188b06
tree09d9d183545b2186a08176c41019bffeb53a2aa5
parentb4ebbb876dca9327cc964138f5558ca3c6832392
MIPS: mm: Simplify build_update_entries

We can simplify build_update_entries by unifying the code for the 36 bit
physical addressing with MIPS32 case with the general case, by using
pte_off_ variables in all cases & handling the trivial
_PAGE_GLOBAL_SHIFT == 0 case in build_convert_pte_to_entrylo. This
leaves XPA as the only special case.

Signed-off-by: Paul Burton <[email protected]>
Reviewed-by: James Hogan <[email protected]>
Cc: Paul Gortmaker <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/13123/
Signed-off-by: Ralf Baechle <[email protected]>
arch/mips/mm/tlbex.c