]> 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)
commit7da00aec4f6c6198df7b6ce4c4772def1008591a
tree8d7f85ac726d7b702732c8d0921cafc4bb6809cb
parentd2c412fc8fe1408586031a17f36d4ea5c8c284a9
xtensa: fix noMMU build on cores with MMU

Commit 9e6f8a2809bf51 ("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