Skip to content

Commit 251e8e3

Browse files
author
Ingo Molnar
committed
perf_counter: Remove ACPI quirk
We had a disable/enable around acpi_idle_do_entry() due to an erratum in an early prototype CPU i had access to. That erratum has been fixed in the BIOS so remove the quirk. The quirk also kept us from profiling interrupts that hit the ACPI idle instruction - so this is an improvement as well, beyond a cleanup and a micro-optimization. [ Impact: improve profiling scope, cleanup, micro-optimization ] Signed-off-by: Peter Zijlstra <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Corey Ashford <[email protected]> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <[email protected]>
1 parent 9029a5e commit 251e8e3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/acpi/processor_idle.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,6 @@ static inline void acpi_idle_do_entry(struct acpi_processor_cx *cx)
765765
{
766766
/* Don't trace irqs off for idle */
767767
stop_critical_timings();
768-
perf_disable();
769768
if (cx->entry_method == ACPI_CSTATE_FFH) {
770769
/* Call into architectural FFH based C-state */
771770
acpi_processor_ffh_cstate_enter(cx);
@@ -780,7 +779,6 @@ static inline void acpi_idle_do_entry(struct acpi_processor_cx *cx)
780779
gets asserted in time to freeze execution properly. */
781780
unused = inl(acpi_gbl_FADT.xpm_timer_block.address);
782781
}
783-
perf_enable();
784782
start_critical_timings();
785783
}
786784

0 commit comments

Comments
 (0)