summaryrefslogtreecommitdiffstats
path: root/arch/um/include/asm/tlb.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2021-03-15 23:38:04 +0100
committerRichard Weinberger <richard@nod.at>2021-06-17 22:04:40 +0200
commit80f849bf541ef9b633a9c08ac208f9c9afd14eb9 (patch)
tree4da4171a7d84405ecdbecfc246301eb9e176f9da /arch/um/include/asm/tlb.h
parentdd3035a21ba7ccaa883d7107d357ad06320d78fc (diff)
downloadlinux-80f849bf541ef9b633a9c08ac208f9c9afd14eb9.tar.bz2
um: implement flush_cache_vmap/flush_cache_vunmap
vmalloc() heavy workloads in UML are extremely slow, due to flushing the entire kernel VM space (flush_tlb_kernel_vm()) on the first segfault. Implement flush_cache_vmap() to avoid that, and while at it also add flush_cache_vunmap() since it's trivial. This speeds up my vmalloc() heavy test of copying files out from /sys/kernel/debug/gcov/ by 30x (from 30s to 1s.) Signed-off-by: Johannes Berg <johannes.berg@intel.com> Acked-By: Anton Ivanov <anton.ivanov@cambridgegreys.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/include/asm/tlb.h')
-rw-r--r--arch/um/include/asm/tlb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/include/asm/tlb.h b/arch/um/include/asm/tlb.h
index ff9c62828962..0422467bda5b 100644
--- a/arch/um/include/asm/tlb.h
+++ b/arch/um/include/asm/tlb.h
@@ -5,7 +5,7 @@
#include <linux/mm.h>
#include <asm/tlbflush.h>
-#include <asm-generic/cacheflush.h>
+#include <asm/cacheflush.h>
#include <asm-generic/tlb.h>
#endif