提交 098fa51b 编写于 作者: T Thomas Gleixner 提交者: Ingo Molnar

sched/rt, MIPS: Use CONFIG_PREEMPTION

CONFIG_PREEMPTION is selected by CONFIG_PREEMPT and by CONFIG_PREEMPT_RT.
Both PREEMPT and PREEMPT_RT require the same functionality which today
depends on CONFIG_PREEMPT.

Switch the entry code and assmebly macros over to use CONFIG_PREEMPTION.
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Cc: James Hogan <jhogan@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul Burton <paul.burton@mips.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@vger.kernel.org
Link: https://lore.kernel.org/r/20191015191821.11479-13-bigeasy@linutronix.deSigned-off-by: NIngo Molnar <mingo@kernel.org>
上级 18803733
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
.endm .endm
.macro local_irq_disable reg=t0 .macro local_irq_disable reg=t0
#ifdef CONFIG_PREEMPT #ifdef CONFIG_PREEMPTION
lw \reg, TI_PRE_COUNT($28) lw \reg, TI_PRE_COUNT($28)
addi \reg, \reg, 1 addi \reg, \reg, 1
sw \reg, TI_PRE_COUNT($28) sw \reg, TI_PRE_COUNT($28)
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
xori \reg, \reg, 1 xori \reg, \reg, 1
mtc0 \reg, CP0_STATUS mtc0 \reg, CP0_STATUS
irq_disable_hazard irq_disable_hazard
#ifdef CONFIG_PREEMPT #ifdef CONFIG_PREEMPTION
lw \reg, TI_PRE_COUNT($28) lw \reg, TI_PRE_COUNT($28)
addi \reg, \reg, -1 addi \reg, \reg, -1
sw \reg, TI_PRE_COUNT($28) sw \reg, TI_PRE_COUNT($28)
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <asm/thread_info.h> #include <asm/thread_info.h>
#include <asm/war.h> #include <asm/war.h>
#ifndef CONFIG_PREEMPT #ifndef CONFIG_PREEMPTION
#define resume_kernel restore_all #define resume_kernel restore_all
#else #else
#define __ret_from_irq ret_from_exception #define __ret_from_irq ret_from_exception
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
.text .text
.align 5 .align 5
#ifndef CONFIG_PREEMPT #ifndef CONFIG_PREEMPTION
FEXPORT(ret_from_exception) FEXPORT(ret_from_exception)
local_irq_disable # preempt stop local_irq_disable # preempt stop
b __ret_from_irq b __ret_from_irq
...@@ -53,7 +53,7 @@ resume_userspace: ...@@ -53,7 +53,7 @@ resume_userspace:
bnez t0, work_pending bnez t0, work_pending
j restore_all j restore_all
#ifdef CONFIG_PREEMPT #ifdef CONFIG_PREEMPTION
resume_kernel: resume_kernel:
local_irq_disable local_irq_disable
lw t0, TI_PRE_COUNT($28) lw t0, TI_PRE_COUNT($28)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册