Commit 09ee167c authored by David S. Miller's avatar David S. Miller

sparc64: Hook up trigger_all_cpu_backtrace().

We already have code that does this, but it is only currently attached
to sysrq-'y'.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5afe2738
...@@ -90,4 +90,7 @@ static inline unsigned long get_softint(void) ...@@ -90,4 +90,7 @@ static inline unsigned long get_softint(void)
return retval; return retval;
} }
void __trigger_all_cpu_backtrace(void);
#define trigger_all_cpu_backtrace() __trigger_all_cpu_backtrace()
#endif #endif
...@@ -300,7 +300,6 @@ void show_regs(struct pt_regs *regs) ...@@ -300,7 +300,6 @@ void show_regs(struct pt_regs *regs)
#endif #endif
} }
#ifdef CONFIG_MAGIC_SYSRQ
struct global_reg_snapshot global_reg_snapshot[NR_CPUS]; struct global_reg_snapshot global_reg_snapshot[NR_CPUS];
static DEFINE_SPINLOCK(global_reg_snapshot_lock); static DEFINE_SPINLOCK(global_reg_snapshot_lock);
...@@ -362,7 +361,7 @@ static void __global_reg_poll(struct global_reg_snapshot *gp) ...@@ -362,7 +361,7 @@ static void __global_reg_poll(struct global_reg_snapshot *gp)
} }
} }
static void sysrq_handle_globreg(int key, struct tty_struct *tty) void __trigger_all_cpu_backtrace(void)
{ {
struct thread_info *tp = current_thread_info(); struct thread_info *tp = current_thread_info();
struct pt_regs *regs = get_irq_regs(); struct pt_regs *regs = get_irq_regs();
...@@ -412,6 +411,13 @@ static void sysrq_handle_globreg(int key, struct tty_struct *tty) ...@@ -412,6 +411,13 @@ static void sysrq_handle_globreg(int key, struct tty_struct *tty)
spin_unlock_irqrestore(&global_reg_snapshot_lock, flags); spin_unlock_irqrestore(&global_reg_snapshot_lock, flags);
} }
#ifdef CONFIG_MAGIC_SYSRQ
static void sysrq_handle_globreg(int key, struct tty_struct *tty)
{
__trigger_all_cpu_backtrace();
}
static struct sysrq_key_op sparc_globalreg_op = { static struct sysrq_key_op sparc_globalreg_op = {
.handler = sysrq_handle_globreg, .handler = sysrq_handle_globreg,
.help_msg = "Globalregs", .help_msg = "Globalregs",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment