From: Ezequiel Garcia Date: Fri, 30 Oct 2015 20:08:05 +0000 (+0100) Subject: ARM: 8450/1: v7-M: Use ret_to_user_from_irq in PendSV handler X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=440ee365d30adbcd9a97fba9cd629cedb7e9b7cb;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ARM: 8450/1: v7-M: Use ret_to_user_from_irq in PendSV handler 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 Acked-by: Uwe Kleine-König Signed-off-by: Russell King --- diff --git a/arch/arm/kernel/entry-v7m.S b/arch/arm/kernel/entry-v7m.S index b6c8bb9315e7..907534f97053 100644 --- a/arch/arm/kernel/entry-v7m.S +++ b/arch/arm/kernel/entry-v7m.S @@ -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) /*