Skip to content

Commit 0328813

Browse files
Sebastian Andrzej SiewiorPeter Zijlstra
authored andcommitted
arm: Rely on generic printing of preemption model
__die() invokes later __show_regs() -> show_regs_print_info() which prints the current preemption model. Remove it from the initial line. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: "Russell King (Oracle)" <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent d167706 commit 0328813

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

arch/arm/kernel/traps.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,6 @@ void show_stack(struct task_struct *tsk, unsigned long *sp, const char *loglvl)
258258
barrier();
259259
}
260260

261-
#ifdef CONFIG_PREEMPT
262-
#define S_PREEMPT " PREEMPT"
263-
#elif defined(CONFIG_PREEMPT_RT)
264-
#define S_PREEMPT " PREEMPT_RT"
265-
#else
266-
#define S_PREEMPT ""
267-
#endif
268261
#ifdef CONFIG_SMP
269262
#define S_SMP " SMP"
270263
#else
@@ -282,8 +275,8 @@ static int __die(const char *str, int err, struct pt_regs *regs)
282275
static int die_counter;
283276
int ret;
284277

285-
pr_emerg("Internal error: %s: %x [#%d]" S_PREEMPT S_SMP S_ISA "\n",
286-
str, err, ++die_counter);
278+
pr_emerg("Internal error: %s: %x [#%d]" S_SMP S_ISA "\n",
279+
str, err, ++die_counter);
287280

288281
/* trap and error numbers are mostly meaningless on ARM */
289282
ret = notify_die(DIE_OOPS, str, regs, err, tsk->thread.trap_no, SIGSEGV);

0 commit comments

Comments
 (0)