[PATCH] x86: PARAVIRT: add hooks to intercept mm creation and destruction
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / asm-mips / mmu_context.h
index 18b69de87daa14ff4881a5bc10ffd3c999e0be5a..65024ffd78799ada089bbbf3ca9de0993022c123 100644 (file)
@@ -20,6 +20,7 @@
 #include <asm/mipsmtregs.h>
 #include <asm/smtc.h>
 #endif /* SMTC */
+#include <asm-generic/mm_hooks.h>
 
 /*
  * For the fast tlb miss handlers, we keep a per cpu array of pointers
@@ -262,10 +263,10 @@ drop_mmu_context(struct mm_struct *mm, unsigned cpu)
                /* See comments for similar code above */
                prevvpe = dvpe();
                oldasid = (read_c0_entryhi() & ASID_MASK);
-               if(smtc_live_asid[mytlb][oldasid]) {
-                 smtc_live_asid[mytlb][oldasid] &= ~(0x1 << cpu);
-                 if(smtc_live_asid[mytlb][oldasid] == 0)
-                       smtc_flush_tlb_asid(oldasid);
+               if (smtc_live_asid[mytlb][oldasid]) {
+                       smtc_live_asid[mytlb][oldasid] &= ~(0x1 << cpu);
+                       if(smtc_live_asid[mytlb][oldasid] == 0)
+                               smtc_flush_tlb_asid(oldasid);
                }
                /* See comments for similar code above */
                write_c0_entryhi((read_c0_entryhi() & ~HW_ASID_MASK)