Skip to content

Commit 732ed14

Browse files
Sebastian Andrzej SiewiorPeter Zijlstra
authored andcommitted
powerpc: Rely on generic printing of preemption model
After the first printk in __die() there is show_regs() -> show_regs_print_info() which prints the current preemption model. Remove the preempion model from the arch code. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Christophe Leroy <[email protected]> Reviewed-by: Shrikanth Hegde <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 4769437 commit 732ed14

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/powerpc/kernel/traps.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,9 @@ static int __die(const char *str, struct pt_regs *regs, long err)
263263
{
264264
printk("Oops: %s, sig: %ld [#%d]\n", str, err, ++die_counter);
265265

266-
printk("%s PAGE_SIZE=%luK%s%s%s%s%s%s %s\n",
266+
printk("%s PAGE_SIZE=%luK%s %s%s%s%s %s\n",
267267
IS_ENABLED(CONFIG_CPU_LITTLE_ENDIAN) ? "LE" : "BE",
268268
PAGE_SIZE / 1024, get_mmu_str(),
269-
IS_ENABLED(CONFIG_PREEMPT) ? " PREEMPT" : "",
270269
IS_ENABLED(CONFIG_SMP) ? " SMP" : "",
271270
IS_ENABLED(CONFIG_SMP) ? (" NR_CPUS=" __stringify(NR_CPUS)) : "",
272271
debug_pagealloc_enabled() ? " DEBUG_PAGEALLOC" : "",

0 commit comments

Comments
 (0)