MIPS: mm: Clean up setup of protection map
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 13 Nov 2020 11:09:52 +0000 (12:09 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 19 Nov 2020 12:27:18 +0000 (13:27 +0100)
commit0df162e1377a585ced8adb932f7d6e4164e91ccf
tree1032bc399bab6bc95f29d37cdb85fe1ba9515da1
parented2adb74217a4054a92e0a0746e31ec6f5e466c8
MIPS: mm: Clean up setup of protection map

Protection map difference between RIXI and non RIXI cpus is _PAGE_NO_EXEC
and _PAGE_NO_READ usage. Both already take care of cpu_has_rixi while
setting up the page bits. So we just need one setup of protection map
and can drop the now unused (and broken for RIXI) PAGE_* defines.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/pgtable.h
arch/mips/mm/cache.c