forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/powerpc/include/asm/book3s/64/tlbflush.h
....@@ -147,19 +147,12 @@
147147 flush_tlb_page(vma, address);
148148 }
149149
150
-/*
151
- * flush the page walk cache for the address
152
- */
153
-static inline void flush_tlb_pgtable(struct mmu_gather *tlb, unsigned long address)
154
-{
155
- /*
156
- * Flush the page table walk cache on freeing a page table. We already
157
- * have marked the upper/higher level page table entry none by now.
158
- * So it is safe to flush PWC here.
159
- */
160
- if (!radix_enabled())
161
- return;
150
+extern bool tlbie_capable;
151
+extern bool tlbie_enabled;
162152
163
- radix__flush_tlb_pwc(tlb, address);
153
+static inline bool cputlb_use_tlbie(void)
154
+{
155
+ return tlbie_enabled;
164156 }
157
+
165158 #endif /* _ASM_POWERPC_BOOK3S_64_TLBFLUSH_H */