diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2013-09-17 14:53:07 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2013-11-13 14:21:46 -0500 |
commit | 650e4dc2a75959fdca1eecc0147bbb21dbfadf0f (patch) | |
tree | c2fa75aef2803355631419aed950b85821ae08c7 /arch/m32r | |
parent | 54197e43a4a9a0f3fc406d72d9815754e84fab1e (diff) |
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
Diffstat (limited to 'arch/m32r')
-rw-r--r-- | arch/m32r/kernel/entry.S | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/m32r/kernel/entry.S b/arch/m32r/kernel/entry.S index 0c01543f10cd..7c3db9940ce1 100644 --- a/arch/m32r/kernel/entry.S +++ b/arch/m32r/kernel/entry.S | |||
@@ -182,13 +182,7 @@ need_resched: | |||
182 | ld r4, PSW(sp) ; interrupts off (exception path) ? | 182 | ld r4, PSW(sp) ; interrupts off (exception path) ? |
183 | and3 r4, r4, #0x4000 | 183 | and3 r4, r4, #0x4000 |
184 | beqz r4, restore_all | 184 | beqz r4, restore_all |
185 | LDIMM (r4, PREEMPT_ACTIVE) | 185 | bl preempt_schedule_irq |
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) | ||
192 | bra need_resched | 186 | bra need_resched |
193 | #endif | 187 | #endif |
194 | 188 | ||