]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/acpi/processor_idle.c
perf_counter: Rework the perf counter disable/enable
[mv-sheeva.git] / drivers / acpi / processor_idle.c
index d2830f39d46b430ea501609938dbc7b835dd083d..9645758c047214707bcd411f4b9d4c6e3ed56703 100644 (file)
@@ -763,11 +763,9 @@ static int acpi_idle_bm_check(void)
  */
 static inline void acpi_idle_do_entry(struct acpi_processor_cx *cx)
 {
-       u64 perf_flags;
-
        /* Don't trace irqs off for idle */
        stop_critical_timings();
-       perf_flags = hw_perf_save_disable();
+       perf_disable();
        if (cx->entry_method == ACPI_CSTATE_FFH) {
                /* Call into architectural FFH based C-state */
                acpi_processor_ffh_cstate_enter(cx);
@@ -782,7 +780,7 @@ static inline void acpi_idle_do_entry(struct acpi_processor_cx *cx)
                   gets asserted in time to freeze execution properly. */
                unused = inl(acpi_gbl_FADT.xpm_timer_block.address);
        }
-       hw_perf_restore(perf_flags);
+       perf_enable();
        start_critical_timings();
 }