~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/x86/kernel/apic/hw_nmi.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#include <linux/kprobes.h>
17
17
#include <linux/nmi.h>
18
18
#include <linux/module.h>
 
19
#include <linux/delay.h>
19
20
 
20
21
#ifdef CONFIG_HARDLOCKUP_DETECTOR
21
 
u64 hw_nmi_get_sample_period(void)
 
22
u64 hw_nmi_get_sample_period(int watchdog_thresh)
22
23
{
23
 
        return (u64)(cpu_khz) * 1000 * 60;
 
24
        return (u64)(cpu_khz) * 1000 * watchdog_thresh;
24
25
}
25
26
#endif
26
27
 
83
84
                arch_spin_lock(&lock);
84
85
                printk(KERN_WARNING "NMI backtrace for cpu %d\n", cpu);
85
86
                show_regs(regs);
86
 
                dump_stack();
87
87
                arch_spin_unlock(&lock);
88
88
                cpumask_clear_cpu(cpu, to_cpumask(backtrace_mask));
89
89
                return NOTIFY_STOP;