summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Murzin <vladimir.murzin@arm.com>2021-11-30 17:29:54 +0000
committerRich Felker <dalias@libc.org>2021-12-06 10:12:07 -0500
commit1022d5b576ebada0b59835b77e0300183fa72de9 (patch)
tree42caf0c92fdbf31e1792ad656405d186a5aec6b5
parentcdf26df8d200d6ff91fc30b32253cde198068b29 (diff)
downloadlinux-sh-v5.16+j2.tar.gz
percpu: km: ensure it is used with NOMMU (either UP or SMP)v5.16+j2
Currently, NOMMU pull km allocator via !SMP dependency because most of them are UP, yet for SMP+NOMMU vm allocator gets pulled which: * may lead to broken build [1] * ...or not working runtime due to [2] It looks like SMP+NOMMU case was overlooked in bbddff054587 ("percpu: use percpu allocator on UP too") so restore that. [1] For ARM SMP+NOMMU (R-class cores) arm-none-linux-gnueabihf-ld: mm/percpu.o: in function `pcpu_post_unmap_tlb_flush': mm/percpu-vm.c:188: undefined reference to `flush_tlb_kernel_range' [2] static inline int vmap_pages_range_noflush(unsigned long addr, unsigned long end, pgprot_t prot, struct page **pages, unsigned int page_shift) { return -EINVAL; } Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
-rw-r--r--mm/Kconfig3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/Kconfig b/mm/Kconfig
index 28edafc820ad..65d8217b288e 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -428,9 +428,8 @@ config THP_SWAP
# UP and nommu archs use km based percpu allocator
#
config NEED_PER_CPU_KM
- depends on !SMP
bool
- default y
+ default !SMP || !MMU
config CLEANCACHE
bool "Enable cleancache driver to cache clean pages if tmem is present"