Revert "perf/x86/intel, watchdog: Switch NMI watchdog to ref cycles on x86"
[deliverable/linux.git] / arch / x86 / kernel / apic / hw_nmi.c
index 016f4263fad473962f61359ac641be41db7a808a..7788ce643bf4577d443b1007a1e4d37c8d28aaff 100644 (file)
 #include <linux/nmi.h>
 #include <linux/module.h>
 #include <linux/delay.h>
-#include <linux/perf_event.h>
 
 #ifdef CONFIG_HARDLOCKUP_DETECTOR
-int hw_nmi_get_event(void)
-{
-       if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL)
-               return PERF_COUNT_HW_REF_CPU_CYCLES;
-       return PERF_COUNT_HW_CPU_CYCLES;
-}
-
 u64 hw_nmi_get_sample_period(int watchdog_thresh)
 {
        return (u64)(cpu_khz) * 1000 * watchdog_thresh;
This page took 0.025039 seconds and 5 git commands to generate.