aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'arch/parisc/include/asm/mmu_context.h')
-rw-r--r--arch/parisc/include/asm/mmu_context.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/arch/parisc/include/asm/mmu_context.h b/arch/parisc/include/asm/mmu_context.h
index 59be25764433..a81226257878 100644
--- a/arch/parisc/include/asm/mmu_context.h
+++ b/arch/parisc/include/asm/mmu_context.h
@@ -49,15 +49,26 @@ static inline void load_context(mm_context_t context)
49 mtctl(__space_to_prot(context), 8); 49 mtctl(__space_to_prot(context), 8);
50} 50}
51 51
52static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, struct task_struct *tsk) 52static inline void switch_mm_irqs_off(struct mm_struct *prev,
53 struct mm_struct *next, struct task_struct *tsk)
53{ 54{
54
55 if (prev != next) { 55 if (prev != next) {
56 mtctl(__pa(next->pgd), 25); 56 mtctl(__pa(next->pgd), 25);
57 load_context(next->context); 57 load_context(next->context);
58 } 58 }
59} 59}
60 60
61static inline void switch_mm(struct mm_struct *prev,
62 struct mm_struct *next, struct task_struct *tsk)
63{
64 unsigned long flags;
65
66 local_irq_save(flags);
67 switch_mm_irqs_off(prev, next, tsk);
68 local_irq_restore(flags);
69}
70#define switch_mm_irqs_off switch_mm_irqs_off
71
61#define deactivate_mm(tsk,mm) do { } while (0) 72#define deactivate_mm(tsk,mm) do { } while (0)
62 73
63static inline void activate_mm(struct mm_struct *prev, struct mm_struct *next) 74static inline void activate_mm(struct mm_struct *prev, struct mm_struct *next)