linux/arch/nios2/kernel
Tobias Klauser 1b0f44923e nios2: Use preempt_schedule_irq
Follow aa0d532605 ("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>
2014-12-31 11:04:58 +08:00
..
asm-offsets.c nios2: asm-offsets: Remove unused definition TI_TASK 2014-12-08 12:56:12 +08:00
cpuinfo.c nios2: Initialize cpuinfo.mmu 2014-12-31 10:09:32 +08:00
entry.S nios2: Use preempt_schedule_irq 2014-12-31 11:04:58 +08:00
head.S nios2: Kernel booting and initialization 2014-12-08 12:55:49 +08:00
insnemu.S nios2: Traps exception handling 2014-12-08 12:55:50 +08:00
irq.c nios2: Interrupt handling 2014-12-08 12:55:55 +08:00
Makefile nios2: Build infrastructure 2014-12-08 12:56:06 +08:00
misaligned.c nios2: Exception handling 2014-12-08 12:55:50 +08:00
module.c nios2: Module support 2014-12-08 12:56:04 +08:00
nios2_ksyms.c nios2: Build infrastructure 2014-12-08 12:56:06 +08:00
process.c nios2: Process management 2014-12-08 12:55:53 +08:00
prom.c nios2: Device tree support 2014-12-08 12:56:01 +08:00
ptrace.c nios2: ptrace support 2014-12-08 12:56:04 +08:00
setup.c nios2: Kernel booting and initialization 2014-12-08 12:55:49 +08:00
signal.c nios2: Signal handling support 2014-12-08 12:55:59 +08:00
sys_nios2.c nios2: System calls handling 2014-12-08 12:55:58 +08:00
syscall_table.c nios2: System calls handling 2014-12-08 12:55:58 +08:00
time.c nios2: Remove write-only struct member from nios2_timer 2014-12-08 12:56:12 +08:00
traps.c nios2: Traps exception handling 2014-12-08 12:55:50 +08:00
vmlinux.lds.S nios2: Build infrastructure 2014-12-08 12:56:06 +08:00