aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/perf_counter.h
diff options
context:
space:
mode:
authorYong Wang <yong.y.wang@linux.intel.com>2009-05-29 01:28:35 -0400
committerIngo Molnar <mingo@elte.hu>2009-05-29 03:04:58 -0400
commitc323d95fa4dbe0b6bf6d59e24a0b7db067dd08a7 (patch)
tree4e674688eb9ba7a84ab34db4bf51cfca34edf6ed /arch/x86/include/asm/perf_counter.h
parentda417a7537cbf4beb28a08a49adf915f2358040c (diff)
perf_counter/x86: Always use NMI for performance-monitoring interrupt
Always use NMI for performance-monitoring interrupt as there could be racy situations if we switch between irq and nmi mode frequently. Signed-off-by: Yong Wang <yong.y.wang@intel.com> LKML-Reference: <20090529052835.GA13657@ywang-moblin2.bj.intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/perf_counter.h')
-rw-r--r--arch/x86/include/asm/perf_counter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/perf_counter.h b/arch/x86/include/asm/perf_counter.h
index d08dd52cb8ff..876ed97147b3 100644
--- a/arch/x86/include/asm/perf_counter.h
+++ b/arch/x86/include/asm/perf_counter.h
@@ -91,10 +91,10 @@ extern void set_perf_counter_pending(void);
91 91
92#ifdef CONFIG_PERF_COUNTERS 92#ifdef CONFIG_PERF_COUNTERS
93extern void init_hw_perf_counters(void); 93extern void init_hw_perf_counters(void);
94extern void perf_counters_lapic_init(int nmi); 94extern void perf_counters_lapic_init(void);
95#else 95#else
96static inline void init_hw_perf_counters(void) { } 96static inline void init_hw_perf_counters(void) { }
97static inline void perf_counters_lapic_init(int nmi) { } 97static inline void perf_counters_lapic_init(void) { }
98#endif 98#endif
99 99
100#endif /* _ASM_X86_PERF_COUNTER_H */ 100#endif /* _ASM_X86_PERF_COUNTER_H */