Skip to content

Commit 650e4dc

Browse files
committed
m32r: Use preempt_schedule_irq
Use the proper core function instead of fiddling with preempt_active and interrupt enable in the low level code. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Hirokazu Takata <takata@linux-m32r.org> Cc: linux-m32r-ja@ml.linux-m32r.org Link: http://lkml.kernel.org/r/20130917183628.758421136@linutronix.de
1 parent 54197e4 commit 650e4dc

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

‎arch/m32r/kernel/entry.S‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,7 @@ need_resched:
182182
ld r4, PSW(sp) ; interrupts off (exception path) ?
183183
and3 r4, r4, #0x4000
184184
beqz r4, restore_all
185-
LDIMM (r4, PREEMPT_ACTIVE)
186-
st r4, @(TI_PRE_COUNT, r8)
187-
ENABLE_INTERRUPTS(r4)
188-
bl schedule
189-
ldi r4, #0
190-
st r4, @(TI_PRE_COUNT, r8)
191-
DISABLE_INTERRUPTS(r4)
185+
bl preempt_schedule_irq
192186
bra need_resched
193187
#endif
194188

0 commit comments

Comments
 (0)