mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 18:11:20 +00:00
sched/rt, xtensa: 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. Add PREEMPT_RT output to die(). [bigeasy: +traps.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> Acked-by: Max Filippov <jcmvbkbc@gmail.com> Cc: Chris Zankel <chris@zankel.net> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: linux-xtensa@linux-xtensa.org Link: https://lore.kernel.org/r/20191015191821.11479-21-bigeasy@linutronix.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
parent
85a683d0a6
commit
6c5260d73d
2 changed files with 6 additions and 3 deletions
|
@ -520,7 +520,7 @@ common_exception_return:
|
||||||
call4 schedule # void schedule (void)
|
call4 schedule # void schedule (void)
|
||||||
j 1b
|
j 1b
|
||||||
|
|
||||||
#ifdef CONFIG_PREEMPT
|
#ifdef CONFIG_PREEMPTION
|
||||||
6:
|
6:
|
||||||
_bbci.l a4, TIF_NEED_RESCHED, 4f
|
_bbci.l a4, TIF_NEED_RESCHED, 4f
|
||||||
|
|
||||||
|
|
|
@ -519,12 +519,15 @@ DEFINE_SPINLOCK(die_lock);
|
||||||
void die(const char * str, struct pt_regs * regs, long err)
|
void die(const char * str, struct pt_regs * regs, long err)
|
||||||
{
|
{
|
||||||
static int die_counter;
|
static int die_counter;
|
||||||
|
const char *pr = "";
|
||||||
|
|
||||||
|
if (IS_ENABLED(CONFIG_PREEMPTION))
|
||||||
|
pr = IS_ENABLED(CONFIG_PREEMPT_RT) ? " PREEMPT_RT" : " PREEMPT";
|
||||||
|
|
||||||
console_verbose();
|
console_verbose();
|
||||||
spin_lock_irq(&die_lock);
|
spin_lock_irq(&die_lock);
|
||||||
|
|
||||||
pr_info("%s: sig: %ld [#%d]%s\n", str, err, ++die_counter,
|
pr_info("%s: sig: %ld [#%d]%s\n", str, err, ++die_counter, pr);
|
||||||
IS_ENABLED(CONFIG_PREEMPT) ? " PREEMPT" : "");
|
|
||||||
show_regs(regs);
|
show_regs(regs);
|
||||||
if (!user_mode(regs))
|
if (!user_mode(regs))
|
||||||
show_stack(NULL, (unsigned long*)regs->areg[1]);
|
show_stack(NULL, (unsigned long*)regs->areg[1]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue