MIPS: kdb: Remove old workaround for backtracing on other CPUs
authorDouglas Anderson <dianders@chromium.org>
Sat, 9 Nov 2019 19:16:40 +0000 (11:16 -0800)
committerDaniel Thompson <daniel.thompson@linaro.org>
Fri, 31 Jan 2020 17:33:51 +0000 (17:33 +0000)
As of commit 2277b492582d ("kdb: Fix stack crawling on 'running' CPUs
that aren't the master") we no longer need any special case for doing
stack dumps on CPUs that are not the kdb master.  Let's remove.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20191109111623.1.I30a0cac4d9880040c8d41495bd9a567fe3e24989@changeid
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
arch/mips/kernel/traps.c

index 83f2a437d9e244e44469af47ec0a93fe8c2ccb7c..31968cbd6464fe87ab272c980ad7914c57e5249e 100644 (file)
@@ -210,11 +210,6 @@ void show_stack(struct task_struct *task, unsigned long *sp)
                        regs.regs[29] = task->thread.reg29;
                        regs.regs[31] = 0;
                        regs.cp0_epc = task->thread.reg31;
-#ifdef CONFIG_KGDB_KDB
-               } else if (atomic_read(&kgdb_active) != -1 &&
-                          kdb_current_regs) {
-                       memcpy(&regs, kdb_current_regs, sizeof(regs));
-#endif /* CONFIG_KGDB_KDB */
                } else {
                        prepare_frametrace(&regs);
                }