ARM: 8450/1: v7-M: Use ret_to_user_from_irq in PendSV handler
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Fri, 30 Oct 2015 20:08:05 +0000 (21:08 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 16 Nov 2015 18:34:37 +0000 (18:34 +0000)
The PendSV handler calls v7m_exception_entry which
disables IRQs. Therefore, since IRQs are already disabled,
the PendSV handler can return using ret_to_user_from_irq.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/entry-v7m.S

index b6c8bb9315e7bb6c15b9eb015ad9627fe545fdcb..907534f97053abbc32b667ff43df88dc93c08fb7 100644 (file)
@@ -88,7 +88,7 @@ __pendsv_entry:
        @ execute the pending work, including reschedule
        get_thread_info tsk
        mov     why, #0
-       b       ret_to_user
+       b       ret_to_user_from_irq
 ENDPROC(__pendsv_entry)
 
 /*