#include <linux/nmi.h>
  #include <linux/module.h>
  
- /* For reliability, we're prepared to waste bits here. */
- static DECLARE_BITMAP(backtrace_mask, NR_CPUS) __read_mostly;
- 
 +#ifdef CONFIG_HARDLOCKUP_DETECTOR
  u64 hw_nmi_get_sample_period(void)
  {
        return (u64)(cpu_khz) * 1000 * 60;
  }
 +#endif
  
 -#ifdef ARCH_HAS_NMI_WATCHDOG
+ 
+ /* For reliability, we're prepared to waste bits here. */
+ static DECLARE_BITMAP(backtrace_mask, NR_CPUS) __read_mostly;
+ 
 +#ifdef arch_trigger_all_cpu_backtrace
  void arch_trigger_all_cpu_backtrace(void)
  {
        int i;