Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107504
b: refs/heads/master
c: 09ee167
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Jul 31, 2008
1 parent b295a27 commit da5edef
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5afe27380bc42454254c9c83c045240249c15e35
refs/heads/master: 09ee167cbf3b7390c993c6699ce9fa84e55422bf
3 changes: 3 additions & 0 deletions trunk/arch/sparc/include/asm/irq_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,7 @@ static inline unsigned long get_softint(void)
return retval;
}

void __trigger_all_cpu_backtrace(void);
#define trigger_all_cpu_backtrace() __trigger_all_cpu_backtrace()

#endif
10 changes: 8 additions & 2 deletions trunk/arch/sparc64/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ void show_regs(struct pt_regs *regs)
#endif
}

#ifdef CONFIG_MAGIC_SYSRQ
struct global_reg_snapshot global_reg_snapshot[NR_CPUS];
static DEFINE_SPINLOCK(global_reg_snapshot_lock);

Expand Down Expand Up @@ -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 pt_regs *regs = get_irq_regs();
Expand Down Expand Up @@ -412,6 +411,13 @@ static void sysrq_handle_globreg(int key, struct tty_struct *tty)
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 = {
.handler = sysrq_handle_globreg,
.help_msg = "Globalregs",
Expand Down

0 comments on commit da5edef

Please sign in to comment.