]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
xtensa: fix noMMU build on cores with MMU
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 1 Feb 2017 02:35:37 +0000 (18:35 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Wed, 1 Feb 2017 02:49:59 +0000 (18:49 -0800)
commit4b3e6f2ef3722f1a6a97b6034ed492c1a21fd4ae
tree8d7f85ac726d7b702732c8d0921cafc4bb6809cb
parent69973b830859bc6529a7a0468ba0d80ee5117826
xtensa: fix noMMU build on cores with MMU

Commit bf15f86b343ed8 ("xtensa: initialize MMU before jumping to reset
vector") calls MMU management functions even when CONFIG_MMU is not
selected. That breaks noMMU build on cores with MMU.

Don't manage MMU when CONFIG_MMU is not selected.

Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/setup.c