hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/arch/sparc/include/asm/tlb_64.h
....@@ -4,7 +4,6 @@
44
55 #include <linux/swap.h>
66 #include <linux/pagemap.h>
7
-#include <asm/pgalloc.h>
87 #include <asm/tlbflush.h>
98 #include <asm/mmu_context.h>
109
....@@ -28,6 +27,15 @@
2827 #define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0)
2928 #define tlb_flush(tlb) flush_tlb_pending()
3029
30
+/*
31
+ * SPARC64's hardware TLB fill does not use the Linux page-tables
32
+ * and therefore we don't need a TLBI when freeing page-table pages.
33
+ */
34
+
35
+#ifdef CONFIG_MMU_GATHER_RCU_TABLE_FREE
36
+#define tlb_needs_table_invalidate() (false)
37
+#endif
38
+
3139 #include <asm-generic/tlb.h>
3240
3341 #endif /* _SPARC64_TLB_H */