]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit1fd6c02207107c8892219dacef01de7ced3d4ce7
tree4f2bbf1f8c0284d47485239b67291e9805c596da
parent4e003747043d57aa75c9762fa148ef38afe68dd8
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