]> err.no Git - linux-2.6/blobdiff - include/asm-um/mmu_context.h
Merge master.kernel.org:/pub/scm/linux/kernel/git/herbert/crypto-2.6
[linux-2.6] / include / asm-um / mmu_context.h
index 2edb4f1f789cdb96e0208da409622db6f1eaa70b..9aa4b44e8cc1658653a0eb2f0f8383752f88313c 100644 (file)
@@ -6,8 +6,9 @@
 #ifndef __UM_MMU_CONTEXT_H
 #define __UM_MMU_CONTEXT_H
 
+#include <asm-generic/mm_hooks.h>
+
 #include "linux/sched.h"
-#include "linux/config.h"
 #include "choose-mode.h"
 #include "um_mmu.h"
 
@@ -29,7 +30,8 @@ static inline void activate_mm(struct mm_struct *old, struct mm_struct *new)
         * possible.
         */
        if (old != new && (current->flags & PF_BORROWED_MM))
-               force_flush_all();
+               CHOOSE_MODE(force_flush_all(),
+                           switch_mm_skas(&new->context.skas.id));
 }
 
 static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,