|
@@ -270,11 +270,11 @@ static atomic_t c3_cpu_count;
|
|
/* Common C-state entry for C2, C3, .. */
|
|
/* Common C-state entry for C2, C3, .. */
|
|
static void acpi_cstate_enter(struct acpi_processor_cx *cstate)
|
|
static void acpi_cstate_enter(struct acpi_processor_cx *cstate)
|
|
{
|
|
{
|
|
- u64 pctrl;
|
|
|
|
|
|
+ u64 perf_flags;
|
|
|
|
|
|
/* Don't trace irqs off for idle */
|
|
/* Don't trace irqs off for idle */
|
|
stop_critical_timings();
|
|
stop_critical_timings();
|
|
- pctrl = hw_perf_disable_all();
|
|
|
|
|
|
+ perf_flags = hw_perf_save_disable();
|
|
if (cstate->entry_method == ACPI_CSTATE_FFH) {
|
|
if (cstate->entry_method == ACPI_CSTATE_FFH) {
|
|
/* Call into architectural FFH based C-state */
|
|
/* Call into architectural FFH based C-state */
|
|
acpi_processor_ffh_cstate_enter(cstate);
|
|
acpi_processor_ffh_cstate_enter(cstate);
|
|
@@ -287,7 +287,7 @@ static void acpi_cstate_enter(struct acpi_processor_cx *cstate)
|
|
gets asserted in time to freeze execution properly. */
|
|
gets asserted in time to freeze execution properly. */
|
|
unused = inl(acpi_gbl_FADT.xpm_timer_block.address);
|
|
unused = inl(acpi_gbl_FADT.xpm_timer_block.address);
|
|
}
|
|
}
|
|
- hw_perf_restore_ctrl(pctrl);
|
|
|
|
|
|
+ hw_perf_restore(perf_flags);
|
|
start_critical_timings();
|
|
start_critical_timings();
|
|
}
|
|
}
|
|
#endif /* !CONFIG_CPU_IDLE */
|
|
#endif /* !CONFIG_CPU_IDLE */
|
|
@@ -1433,7 +1433,7 @@ static inline void acpi_idle_do_entry(struct acpi_processor_cx *cx)
|
|
|
|
|
|
/* Don't trace irqs off for idle */
|
|
/* Don't trace irqs off for idle */
|
|
stop_critical_timings();
|
|
stop_critical_timings();
|
|
- pctrl = hw_perf_disable_all();
|
|
|
|
|
|
+ pctrl = hw_perf_save_disable();
|
|
if (cx->entry_method == ACPI_CSTATE_FFH) {
|
|
if (cx->entry_method == ACPI_CSTATE_FFH) {
|
|
/* Call into architectural FFH based C-state */
|
|
/* Call into architectural FFH based C-state */
|
|
acpi_processor_ffh_cstate_enter(cx);
|
|
acpi_processor_ffh_cstate_enter(cx);
|
|
@@ -1448,7 +1448,7 @@ static inline void acpi_idle_do_entry(struct acpi_processor_cx *cx)
|
|
gets asserted in time to freeze execution properly. */
|
|
gets asserted in time to freeze execution properly. */
|
|
unused = inl(acpi_gbl_FADT.xpm_timer_block.address);
|
|
unused = inl(acpi_gbl_FADT.xpm_timer_block.address);
|
|
}
|
|
}
|
|
- hw_perf_restore_ctrl(pctrl);
|
|
|
|
|
|
+ hw_perf_restore(pctrl);
|
|
start_critical_timings();
|
|
start_critical_timings();
|
|
}
|
|
}
|
|
|
|
|