]> git.baikalelectronics.ru Git - kernel.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)
commite47a91c2f013a61b72d42d2eecdef831f053f158
tree8d7f85ac726d7b702732c8d0921cafc4bb6809cb
parenta038d7bc5ca9f7db00f9545f7f383b2cff5f3e9d
xtensa: fix noMMU build on cores with MMU

Commit 58c818ce0f8824 ("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