aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/powerpc/kernel/entry_64.S
diff options
context:
space:
mode:
authorValentin Schneider <valentin.schneider@arm.com>2019-03-11 22:47:46 +0000
committerMichael Ellerman <mpe@ellerman.id.au>2019-05-03 02:54:57 +1000
commit90437bffa5f9b1440ba03e023f4875d1814b9360 (patch)
treeb4fc340e85de21c34d58554c8e2065414689336b /arch/powerpc/kernel/entry_64.S
parentpowerpc/dts/fsl: add crypto node alias for B4 (diff)
downloadwireguard-linux-90437bffa5f9b1440ba03e023f4875d1814b9360.tar.xz
wireguard-linux-90437bffa5f9b1440ba03e023f4875d1814b9360.zip
powerpc/entry: Remove unneeded need_resched() loop
Since the enabling and disabling of IRQs within preempt_schedule_irq() is contained in a need_resched() loop, we don't need the outer arch code loop. Signed-off-by: Valentin Schneider <valentin.schneider@arm.com> [mpe: Rebase since CURRENT_THREAD_INFO() removal] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to '')
-rw-r--r--arch/powerpc/kernel/entry_64.S8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S
index 7cc25389c6bd..d978af78bf2a 100644
--- a/arch/powerpc/kernel/entry_64.S
+++ b/arch/powerpc/kernel/entry_64.S
@@ -865,13 +865,7 @@ resume_kernel:
* sure we are soft-disabled first and reconcile irq state.
*/
RECONCILE_IRQ_STATE(r3,r4)
-1: bl preempt_schedule_irq
-
- /* Re-test flags and eventually loop */
- ld r9, PACA_THREAD_INFO(r13)
- ld r4,TI_FLAGS(r9)
- andi. r0,r4,_TIF_NEED_RESCHED
- bne 1b
+ bl preempt_schedule_irq
/*
* arch_local_irq_restore() from preempt_schedule_irq above may