]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Add a CONFIG option to choose if radix is used by default
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 24 Oct 2017 15:48:49 +0000 (17:48 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 6 Nov 2017 05:48:15 +0000 (16:48 +1100)
commitba078f8e8bd9a0a88ba38956629cfc8bb94804ca
tree4f2bbf1f8c0284d47485239b67291e9805c596da
parentfce1305cbd34c58c6a2d0a80946208d9de946560
powerpc/mm: Add a CONFIG option to choose if radix is used by default

Currently if the hardware supports the radix MMU we will use
it, *unless* "disable_radix" is passed on the kernel command line.

However some users would like the reverse semantics. ie. The kernel
uses the hash MMU by default, unless radix is explicitly requested on
the command line.

So add a CONFIG option to choose whether we use radix by default or
not, and expand the disable_radix command line option to allow
"disable_radix=no" which *enables* radix.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/init_64.c
arch/powerpc/platforms/Kconfig.cputype