hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/powerpc/kernel/traps.c
....@@ -170,6 +170,7 @@
170170
171171 extern void panic_flush_kmsg_end(void)
172172 {
173
+ printk_safe_flush_on_panic();
173174 kmsg_dump(KMSG_DUMP_PANIC);
174175 bust_spinlocks(0);
175176 debug_locks_off();
....@@ -259,17 +260,12 @@
259260
260261 static int __die(const char *str, struct pt_regs *regs, long err)
261262 {
262
- const char *pr = "";
263
-
264263 printk("Oops: %s, sig: %ld [#%d]\n", str, err, ++die_counter);
265
-
266
- if (IS_ENABLED(CONFIG_PREEMPTION))
267
- pr = IS_ENABLED(CONFIG_PREEMPT_RT) ? " PREEMPT_RT" : " PREEMPT";
268264
269265 printk("%s PAGE_SIZE=%luK%s%s%s%s%s%s %s\n",
270266 IS_ENABLED(CONFIG_CPU_LITTLE_ENDIAN) ? "LE" : "BE",
271267 PAGE_SIZE / 1024, get_mmu_str(),
272
- pr,
268
+ IS_ENABLED(CONFIG_PREEMPT) ? " PREEMPT" : "",
273269 IS_ENABLED(CONFIG_SMP) ? " SMP" : "",
274270 IS_ENABLED(CONFIG_SMP) ? (" NR_CPUS=" __stringify(NR_CPUS)) : "",
275271 debug_pagealloc_enabled() ? " DEBUG_PAGEALLOC" : "",