aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
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 /drivers
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 'drivers')
-rw-r--r--drivers/acpi/processor_idle.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index cca804e6f1dd..a3e66a33b7a2 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -270,11 +270,11 @@ static atomic_t c3_cpu_count;
270/* Common C-state entry for C2, C3, .. */ 270/* Common C-state entry for C2, C3, .. */
271static void acpi_cstate_enter(struct acpi_processor_cx *cstate) 271static void acpi_cstate_enter(struct acpi_processor_cx *cstate)
272{ 272{
273 u64 pctrl; 273 u64 perf_flags;
274 274
275 /* Don't trace irqs off for idle */ 275 /* Don't trace irqs off for idle */
276 stop_critical_timings(); 276 stop_critical_timings();
277 pctrl = hw_perf_disable_all(); 277 perf_flags = hw_perf_save_disable();
278 if (cstate->entry_method == ACPI_CSTATE_FFH) { 278 if (cstate->entry_method == ACPI_CSTATE_FFH) {
279 /* Call into architectural FFH based C-state */ 279 /* Call into architectural FFH based C-state */
280 acpi_processor_ffh_cstate_enter(cstate); 280 acpi_processor_ffh_cstate_enter(cstate);
@@ -287,7 +287,7 @@ static void acpi_cstate_enter(struct acpi_processor_cx *cstate)
287 gets asserted in time to freeze execution properly. */ 287 gets asserted in time to freeze execution properly. */
288 unused = inl(acpi_gbl_FADT.xpm_timer_block.address); 288 unused = inl(acpi_gbl_FADT.xpm_timer_block.address);
289 } 289 }
290 hw_perf_restore_ctrl(pctrl); 290 hw_perf_restore(perf_flags);
291 start_critical_timings(); 291 start_critical_timings();
292} 292}
293#endif /* !CONFIG_CPU_IDLE */ 293#endif /* !CONFIG_CPU_IDLE */
@@ -1433,7 +1433,7 @@ static inline void acpi_idle_do_entry(struct acpi_processor_cx *cx)
1433 1433
1434 /* Don't trace irqs off for idle */ 1434 /* Don't trace irqs off for idle */
1435 stop_critical_timings(); 1435 stop_critical_timings();
1436 pctrl = hw_perf_disable_all(); 1436 pctrl = hw_perf_save_disable();
1437 if (cx->entry_method == ACPI_CSTATE_FFH) { 1437 if (cx->entry_method == ACPI_CSTATE_FFH) {
1438 /* Call into architectural FFH based C-state */ 1438 /* Call into architectural FFH based C-state */
1439 acpi_processor_ffh_cstate_enter(cx); 1439 acpi_processor_ffh_cstate_enter(cx);
@@ -1448,7 +1448,7 @@ static inline void acpi_idle_do_entry(struct acpi_processor_cx *cx)
1448 gets asserted in time to freeze execution properly. */ 1448 gets asserted in time to freeze execution properly. */
1449 unused = inl(acpi_gbl_FADT.xpm_timer_block.address); 1449 unused = inl(acpi_gbl_FADT.xpm_timer_block.address);
1450 } 1450 }
1451 hw_perf_restore_ctrl(pctrl); 1451 hw_perf_restore(pctrl);
1452 start_critical_timings(); 1452 start_critical_timings();
1453} 1453}
1454 1454