]> git.baikalelectronics.ru Git - kernel.git/commit
nios2: Use preempt_schedule_irq
authorTobias Klauser <tklauser@distanz.ch>
Wed, 31 Dec 2014 02:53:11 +0000 (10:53 +0800)
committerLey Foon Tan <lftan@altera.com>
Wed, 31 Dec 2014 03:04:58 +0000 (11:04 +0800)
commit0a2f0ad4b8b4a1451e01971ba53126db21f30e81
treedfbb1e124873c802f99f81e569f28f1256cdbfbb
parentbf40e8d3c71eb8ce525f7fe12d49877c5473ea04
nios2: Use preempt_schedule_irq

Follow bc212fa8ebaf ("ia64: Use preempt_schedule_irq") and use
preempt_schedule_irq instead of enabling/disabling interrupts and
messing around with PREEMPT_ACTIVE in the nios2 low-level preemption
code ourselves. Also get rid of the now needless re-check for
TIF_NEED_RESCHED, preempt_schedule_irq will already take care of
rescheduling.

This also fixes the following build error when building with
CONFIG_PREEMPT:

arch/nios2/kernel/built-in.o: In function `need_resched':
arch/nios2/kernel/entry.S:374: undefined reference to `PREEMPT_ACTIVE'

Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Ley Foon Tan <lftan@altera.com>
arch/nios2/kernel/entry.S