Skip to content

Commit 7462b75

Browse files
KAGA-KOKOingomolnar
authored andcommitted
sched/rt, h8300: 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 over to use CONFIG_PREEMPTION. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: uclinux-h8-devel@lists.sourceforge.jp Link: https://lore.kernel.org/r/20191015191821.11479-8-bigeasy@linutronix.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 365a795 commit 7462b75

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎arch/h8300/kernel/entry.S‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,12 @@ badsys:
284284
mov.l er0,@(LER0:16,sp)
285285
bra resume_userspace
286286

287-
#if !defined(CONFIG_PREEMPT)
287+
#if !defined(CONFIG_PREEMPTION)
288288
#define resume_kernel restore_all
289289
#endif
290290

291291
ret_from_exception:
292-
#if defined(CONFIG_PREEMPT)
292+
#if defined(CONFIG_PREEMPTION)
293293
orc #0xc0,ccr
294294
#endif
295295
ret_from_interrupt:
@@ -319,7 +319,7 @@ work_resched:
319319
restore_all:
320320
RESTORE_ALL /* Does RTE */
321321

322-
#if defined(CONFIG_PREEMPT)
322+
#if defined(CONFIG_PREEMPTION)
323323
resume_kernel:
324324
mov.l @(TI_PRE_COUNT:16,er4),er0
325325
bne restore_all:8

0 commit comments

Comments
 (0)