aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-12-11 07:45:51 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-11 09:45:53 -0500
commit01b2838c4298c5e0d30b4993c195ac34dd9df61e (patch)
tree56a526fb72bd068eb4e06aa79a7569e6afb4138a /arch
parent5c92d12411dfe5f0f3d1b1c1e2f756245e6f7249 (diff)
perf counters: consolidate hw_perf save/restore APIs
Impact: cleanup Rename them to better match up the usual IRQ disable/enable APIs: hw_perf_disable_all() => hw_perf_save_disable() hw_perf_restore_ctrl() => hw_perf_restore() Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/cpu/perf_counter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/cpu/perf_counter.c b/arch/x86/kernel/cpu/perf_counter.c
index 43c8e9a38b4e..3e1dbebe22b9 100644
--- a/arch/x86/kernel/cpu/perf_counter.c
+++ b/arch/x86/kernel/cpu/perf_counter.c
@@ -118,13 +118,13 @@ void hw_perf_enable_all(void)
118 wrmsr(MSR_CORE_PERF_GLOBAL_CTRL, perf_counter_mask, 0); 118 wrmsr(MSR_CORE_PERF_GLOBAL_CTRL, perf_counter_mask, 0);
119} 119}
120 120
121void hw_perf_restore_ctrl(u64 ctrl) 121void hw_perf_restore(u64 ctrl)
122{ 122{
123 wrmsr(MSR_CORE_PERF_GLOBAL_CTRL, ctrl, 0); 123 wrmsr(MSR_CORE_PERF_GLOBAL_CTRL, ctrl, 0);
124} 124}
125EXPORT_SYMBOL_GPL(hw_perf_restore_ctrl); 125EXPORT_SYMBOL_GPL(hw_perf_restore);
126 126
127u64 hw_perf_disable_all(void) 127u64 hw_perf_save_disable(void)
128{ 128{
129 u64 ctrl; 129 u64 ctrl;
130 130
@@ -132,7 +132,7 @@ u64 hw_perf_disable_all(void)
132 wrmsr(MSR_CORE_PERF_GLOBAL_CTRL, 0, 0); 132 wrmsr(MSR_CORE_PERF_GLOBAL_CTRL, 0, 0);
133 return ctrl; 133 return ctrl;
134} 134}
135EXPORT_SYMBOL_GPL(hw_perf_disable_all); 135EXPORT_SYMBOL_GPL(hw_perf_save_disable);
136 136
137static inline void 137static inline void
138__x86_perf_counter_disable(struct hw_perf_counter *hwc, unsigned int idx) 138__x86_perf_counter_disable(struct hw_perf_counter *hwc, unsigned int idx)