aboutsummaryrefslogtreecommitdiffstats
path: root/features/rt/powerpc-traps-Use-PREEMPT_RT.patch
diff options
context:
space:
mode:
Diffstat (limited to 'features/rt/powerpc-traps-Use-PREEMPT_RT.patch')
-rw-r--r--features/rt/powerpc-traps-Use-PREEMPT_RT.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/features/rt/powerpc-traps-Use-PREEMPT_RT.patch b/features/rt/powerpc-traps-Use-PREEMPT_RT.patch
new file mode 100644
index 00000000..63c650aa
--- /dev/null
+++ b/features/rt/powerpc-traps-Use-PREEMPT_RT.patch
@@ -0,0 +1,38 @@
+From 3411ea60697a880d9c13ccedd06aa313a384b569 Mon Sep 17 00:00:00 2001
+From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
+Date: Fri, 26 Jul 2019 11:30:49 +0200
+Subject: [PATCH 180/191] powerpc: traps: Use PREEMPT_RT
+
+Add PREEMPT_RT to the backtrace if enabled.
+
+Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
+---
+ arch/powerpc/kernel/traps.c | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c
+index 5828c83eaca6..6d0f70abed87 100644
+--- a/arch/powerpc/kernel/traps.c
++++ b/arch/powerpc/kernel/traps.c
+@@ -260,12 +260,17 @@ static char *get_mmu_str(void)
+
+ static int __die(const char *str, struct pt_regs *regs, long err)
+ {
++ const char *pr = "";
++
+ printk("Oops: %s, sig: %ld [#%d]\n", str, err, ++die_counter);
+
++ if (IS_ENABLED(CONFIG_PREEMPTION))
++ pr = IS_ENABLED(CONFIG_PREEMPT_RT) ? " PREEMPT_RT" : " PREEMPT";
++
+ printk("%s PAGE_SIZE=%luK%s%s%s%s%s%s %s\n",
+ IS_ENABLED(CONFIG_CPU_LITTLE_ENDIAN) ? "LE" : "BE",
+ PAGE_SIZE / 1024, get_mmu_str(),
+- IS_ENABLED(CONFIG_PREEMPT) ? " PREEMPT" : "",
++ pr,
+ IS_ENABLED(CONFIG_SMP) ? " SMP" : "",
+ IS_ENABLED(CONFIG_SMP) ? (" NR_CPUS=" __stringify(NR_CPUS)) : "",
+ debug_pagealloc_enabled() ? " DEBUG_PAGEALLOC" : "",
+--
+2.19.1
+