tree 9bd30de345a0bf8260db1e3edbb657dc46bbe1e9
parent 3c4ee4e2520775896efc6ab850c4c27971fbcf2a
author Russell King <[EMAIL PROTECTED]> Wed, 10 Aug 2005 14:52:52 +0100
committer Russell King <[EMAIL PROTECTED]> Wed, 10 Aug 2005 14:52:52 +0100

[ARM SMP] Clear the exclusive monitor on ARMv6 CPUs on context switch

Ensure that the exclusive monitor is cleared on context switch with

Signed-off-by: Russell King <[EMAIL PROTECTED]>

 arch/arm/kernel/entry-armv.S |    7 +++++++
 1 files changed, 7 insertions(+)

diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S
--- a/arch/arm/kernel/entry-armv.S
+++ b/arch/arm/kernel/entry-armv.S
@@ -533,6 +533,13 @@ ENTRY(__switch_to)
        ldr     r3, [r2, #TI_TP_VALUE]
        stmia   ip!, {r4 - sl, fp, sp, lr}      @ Store most regs on stack
        ldr     r6, [r2, #TI_CPU_DOMAIN]!
+#if __LINUX_ARM_ARCH__ >= 6
+       clrex
+       strex   r3, r4, [ip]                    @ Clear exclusive monitor
 #if defined(CONFIG_CPU_XSCALE) && !defined(CONFIG_IWMMXT)
        mra     r4, r5, acc0
        stmia   ip, {r4, r5}
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to