Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sched/rt, s390: 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 preemption and entry code over to use CONFIG_PREEMPTION. Add
PREEMPT_RT output to die().

[bigeasy: +Kconfig, dumpstack.c]

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: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: linux-s390@vger.kernel.org
Link: https://lore.kernel.org/r/20191015191821.11479-18-bigeasy@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by

Thomas Gleixner and committed by
Ingo Molnar
fa686453 29ff6492

+6 -4
+1 -1
arch/s390/Kconfig
··· 30 30 def_bool y 31 31 32 32 config GENERIC_LOCKBREAK 33 - def_bool y if PREEMPT 33 + def_bool y if PREEMPTTION 34 34 35 35 config PGSTE 36 36 def_bool y if KVM
+2 -2
arch/s390/include/asm/preempt.h
··· 130 130 131 131 #endif /* CONFIG_HAVE_MARCH_Z196_FEATURES */ 132 132 133 - #ifdef CONFIG_PREEMPT 133 + #ifdef CONFIG_PREEMPTION 134 134 extern asmlinkage void preempt_schedule(void); 135 135 #define __preempt_schedule() preempt_schedule() 136 136 extern asmlinkage void preempt_schedule_notrace(void); 137 137 #define __preempt_schedule_notrace() preempt_schedule_notrace() 138 - #endif /* CONFIG_PREEMPT */ 138 + #endif /* CONFIG_PREEMPTION */ 139 139 140 140 #endif /* __ASM_PREEMPT_H */
+2
arch/s390/kernel/dumpstack.c
··· 195 195 regs->int_code >> 17, ++die_counter); 196 196 #ifdef CONFIG_PREEMPT 197 197 pr_cont("PREEMPT "); 198 + #elif defined(CONFIG_PREEMPT_RT) 199 + pr_cont("PREEMPT_RT "); 198 200 #endif 199 201 pr_cont("SMP "); 200 202 if (debug_pagealloc_enabled())
+1 -1
arch/s390/kernel/entry.S
··· 790 790 .Lio_work: 791 791 tm __PT_PSW+1(%r11),0x01 # returning to user ? 792 792 jo .Lio_work_user # yes -> do resched & signal 793 - #ifdef CONFIG_PREEMPT 793 + #ifdef CONFIG_PREEMPTION 794 794 # check for preemptive scheduling 795 795 icm %r0,15,__LC_PREEMPT_COUNT 796 796 jnz .Lio_restore # preemption is disabled