From 41d34302372b5c615771e80875f11c2ff069a3e0 Mon Sep 17 00:00:00 2001 From: Guillaume Autran Date: Wed, 13 Jul 2005 01:10:45 -0700 Subject: [PATCH] --- yaml --- r: 4773 b: refs/heads/master c: ddca3b80cef36cc668f924ef5154a79acb19ebd7 h: refs/heads/master i: 4771: 7d91d555c3c03f4c4987e0d215fa6ee4907ccedb v: v3 --- [refs] | 2 +- trunk/include/asm-ppc/mmu_context.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 428db6d20ff7..43057ebd6edf 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 88bd5121d635136e01369141367f315665534b3c +refs/heads/master: ddca3b80cef36cc668f924ef5154a79acb19ebd7 diff --git a/trunk/include/asm-ppc/mmu_context.h b/trunk/include/asm-ppc/mmu_context.h index ccabbce39d85..afe26ffc2e2d 100644 --- a/trunk/include/asm-ppc/mmu_context.h +++ b/trunk/include/asm-ppc/mmu_context.h @@ -149,6 +149,7 @@ static inline void get_mmu_context(struct mm_struct *mm) */ static inline void destroy_context(struct mm_struct *mm) { + preempt_disable(); if (mm->context != NO_CONTEXT) { clear_bit(mm->context, context_map); mm->context = NO_CONTEXT; @@ -156,6 +157,7 @@ static inline void destroy_context(struct mm_struct *mm) atomic_inc(&nr_free_contexts); #endif } + preempt_enable(); } static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,