aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/membarrier.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/membarrier.h')
-rw-r--r--arch/powerpc/include/asm/membarrier.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/membarrier.h b/arch/powerpc/include/asm/membarrier.h
index 98ff4f1fcf2b..6e20bb5c74ea 100644
--- a/arch/powerpc/include/asm/membarrier.h
+++ b/arch/powerpc/include/asm/membarrier.h
@@ -13,7 +13,8 @@ static inline void membarrier_arch_switch_mm(struct mm_struct *prev,
* store to rq->curr.
*/
if (likely(!(atomic_read(&next->membarrier_state) &
- MEMBARRIER_STATE_PRIVATE_EXPEDITED) || !prev))
+ (MEMBARRIER_STATE_PRIVATE_EXPEDITED |
+ MEMBARRIER_STATE_GLOBAL_EXPEDITED)) || !prev))
return;
/*

Privacy Policy