Commit 650e4dc2 authored by Thomas Gleixner's avatar Thomas Gleixner

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: default avatarThomas 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
parent 54197e43
...@@ -182,13 +182,7 @@ need_resched: ...@@ -182,13 +182,7 @@ need_resched:
ld r4, PSW(sp) ; interrupts off (exception path) ? ld r4, PSW(sp) ; interrupts off (exception path) ?
and3 r4, r4, #0x4000 and3 r4, r4, #0x4000
beqz r4, restore_all beqz r4, restore_all
LDIMM (r4, PREEMPT_ACTIVE) bl preempt_schedule_irq
st r4, @(TI_PRE_COUNT, r8)
ENABLE_INTERRUPTS(r4)
bl schedule
ldi r4, #0
st r4, @(TI_PRE_COUNT, r8)
DISABLE_INTERRUPTS(r4)
bra need_resched bra need_resched
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment