ARM: Remove __ARCH_WANT_INTERRUPTS_ON_CTXSW on pre-ARMv6 CPUs
authorCatalin Marinas <[email protected]>
Mon, 28 Nov 2011 21:57:24 +0000 (21:57 +0000)
committerCatalin Marinas <[email protected]>
Tue, 17 Apr 2012 14:29:44 +0000 (15:29 +0100)
commitb9d4d42ad901cc848ac87f1cb8923fded3645568
tree37c2010e12eecb605720b4c5d41780fcba282937
parente323969ccda2d69f02e047c08b03faa09215c72a
ARM: Remove __ARCH_WANT_INTERRUPTS_ON_CTXSW on pre-ARMv6 CPUs

This patch removes the __ARCH_WANT_INTERRUPTS_ON_CTXSW definition for
ARMv5 and earlier processors. On such processors, the context switch
requires a full cache flush. To avoid high interrupt latencies, this
patch defers the mm switching to the post-lock switch hook if the
interrupts are disabled.

Reviewed-by: Will Deacon <[email protected]>
Tested-by: Will Deacon <[email protected]>
Reviewed-by: Frank Rowand <[email protected]>
Tested-by: Marc Zyngier <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
arch/arm/include/asm/mmu.h
arch/arm/include/asm/mmu_context.h