MIPS: Select R3k-style TLB in Kconfig
authorPaul Burton <paul.burton@mips.com>
Sat, 31 Aug 2019 15:40:43 +0000 (15:40 +0000)
committerPaul Burton <paul.burton@mips.com>
Tue, 3 Sep 2019 13:20:43 +0000 (14:20 +0100)
commit5474682934753827d61d1226ba74ea75787b923d
treefb4e214cd30494841d865732b936179ea8d0b9c7
parent813cafc4109c63a666e244c89f080ae27e4310b4
MIPS: Select R3k-style TLB in Kconfig

Currently areas where we need to determine whether the TLB is R3k-style
need to check for either of CONFIG_CPU_R3000 || CONFIG_CPU_TX39XX.

Introduce a new CONFIG_CPU_R3K_TLB & select it from both of the above,
allowing us to simplify checks for R3k-style TLBs by only checking for
this new Kconfig option.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Cc: linux-mips@vger.kernel.org
arch/mips/Kconfig
arch/mips/include/asm/pgtable-32.h
arch/mips/include/asm/pgtable-bits.h
arch/mips/include/asm/pgtable.h
arch/mips/mm/Makefile