1 #ifndef _ASM_X86_MMU_CONTEXT_H
2 #define _ASM_X86_MMU_CONTEXT_H
6 #include <asm/pgalloc.h>
7 #include <asm/tlbflush.h>
8 #include <asm/paravirt.h>
9 #ifndef CONFIG_PARAVIRT
12 static inline void paravirt_activate_mm(
struct mm_struct *
prev,
38 if (
likely(prev != next)) {
43 cpumask_set_cpu(cpu, mm_cpumask(next));
49 cpumask_clear_cpu(cpu, mm_cpumask(prev));
55 load_LDT_nolock(&next->
context);
62 if (!cpumask_test_and_set_cpu(cpu, mm_cpumask(next))) {
68 load_LDT_nolock(&next->
context);
74 #define activate_mm(prev, next) \
76 paravirt_activate_mm((prev), (next)); \
77 switch_mm((prev), (next), NULL); \
81 #define deactivate_mm(tsk, mm) \
86 #define deactivate_mm(tsk, mm) \