Skip to content

Commit

Permalink
perfcounters: fix acpi_idle_do_entry() workaround
Browse files Browse the repository at this point in the history
Fix merge error in drivers/acpi/processor_idle.c. This
resulted in non-working perfcounters on certain Nehalem
systems.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Feb 16, 2009
1 parent 73ca2f8 commit 37a2542
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/acpi/processor_idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -826,12 +826,9 @@ static inline void acpi_idle_do_entry(struct acpi_processor_cx *cx)
{
u64 perf_flags;

u64 pctrl;

/* Don't trace irqs off for idle */
stop_critical_timings();
perf_flags = hw_perf_save_disable();
pctrl = hw_perf_save_disable();
if (cx->entry_method == ACPI_CSTATE_FFH) {
/* Call into architectural FFH based C-state */
acpi_processor_ffh_cstate_enter(cx);
Expand All @@ -847,7 +844,6 @@ static inline void acpi_idle_do_entry(struct acpi_processor_cx *cx)
unused = inl(acpi_gbl_FADT.xpm_timer_block.address);
}
hw_perf_restore(perf_flags);
hw_perf_restore(pctrl);
start_critical_timings();
}

Expand Down

0 comments on commit 37a2542

Please sign in to comment.