summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/tlbflush.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2018-08-22 17:30:16 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2018-08-23 11:56:31 -0700
commit48a8b97cfd804a965fbbe7be2d56a7984ef6bdb1 (patch)
tree4c83ec53b89bf5f05a6e65f7b332ac1ab4ef0983 /arch/x86/include/asm/tlbflush.h
parentfd1102f0aadec7d18792b132e1d224290b2aecca (diff)
downloadblackbird-obmc-linux-48a8b97cfd804a965fbbe7be2d56a7984ef6bdb1.tar.gz
blackbird-obmc-linux-48a8b97cfd804a965fbbe7be2d56a7984ef6bdb1.zip
x86/mm: Only use tlb_remove_table() for paravirt
If we don't use paravirt; don't play unnecessary and complicated games to free page-tables. Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Rik van Riel <riel@surriel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86/include/asm/tlbflush.h')
-rw-r--r--arch/x86/include/asm/tlbflush.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/tlbflush.h b/arch/x86/include/asm/tlbflush.h
index 6690cd3fc8b1..29c9da6c62fc 100644
--- a/arch/x86/include/asm/tlbflush.h
+++ b/arch/x86/include/asm/tlbflush.h
@@ -552,6 +552,9 @@ extern void arch_tlbbatch_flush(struct arch_tlbflush_unmap_batch *batch);
#ifndef CONFIG_PARAVIRT
#define flush_tlb_others(mask, info) \
native_flush_tlb_others(mask, info)
+
+#define paravirt_tlb_remove_table(tlb, page) \
+ tlb_remove_page(tlb, (void *)(page))
#endif
#endif /* _ASM_X86_TLBFLUSH_H */
OpenPOWER on IntegriCloud