Files
linux/arch/arm/include/asm
Catalin Marinas bdae73cd37 ARM: 7790/1: Fix deferred mm switch on VIVT processors
As of commit b9d4d42ad9 (ARM: Remove __ARCH_WANT_INTERRUPTS_ON_CTXSW on
pre-ARMv6 CPUs), the mm switching on VIVT processors is done in the
finish_arch_post_lock_switch() function to avoid whole cache flushing
with interrupts disabled. The need for deferred mm switch is stored as a
thread flag (TIF_SWITCH_MM). However, with preemption enabled, we can
have another thread switch before finish_arch_post_lock_switch(). If the
new thread has the same mm as the previous 'next' thread, the scheduler
will not call switch_mm() and the TIF_SWITCH_MM flag won't be set for
the new thread.

This patch moves the switch pending flag to the mm_context_t structure
since this is specific to the mm rather than thread.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Reported-by: Marc Kleine-Budde <mkl@pengutronix.de>
Tested-by: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: <stable@vger.kernel.org> # 3.5+
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2013-07-26 12:02:09 +01:00
..
2013-04-17 21:38:10 +02:00
2012-10-02 08:58:07 +02:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-07-05 09:50:55 +01:00
2009-03-15 21:01:20 -04:00
2011-03-31 11:26:23 -03:00
2013-04-17 21:38:10 +02:00
2011-03-31 11:26:23 -03:00
2012-09-14 09:21:59 -05:00
2012-09-14 13:53:39 +00:00
2013-04-17 21:38:10 +02:00
2010-10-29 13:14:40 -05:00
2012-07-24 15:27:28 +08:00
2013-06-26 10:50:04 -07:00
2013-01-23 13:29:17 -05:00
2012-02-23 20:19:04 -07:00
2013-05-21 14:24:11 +00:00
2013-04-17 21:38:10 +02:00
2010-10-01 22:32:18 -04:00
2008-11-27 12:37:59 +00:00
2012-03-28 18:30:01 +01:00
2012-08-08 16:34:01 +00:00
2011-03-31 11:26:23 -03:00
2012-01-16 08:56:25 -06:00
2013-04-17 21:38:10 +02:00
2011-07-12 11:19:29 -05:00