diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-02-16 09:32:23 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-16 09:36:41 -0500 |
commit | 37a25424252b6cff4dd4b1937ab6a1dbfcadabcc (patch) | |
tree | bb519b9461c508bf24afbd4b8cf2427a77128f9c /drivers | |
parent | 73ca2f8380311115723c7afe811f3ed1f0ba945e (diff) |
perfcounters: fix acpi_idle_do_entry() workaround
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/processor_idle.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 259f6e806314..08def2f20cd9 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c | |||
@@ -826,12 +826,9 @@ static inline void acpi_idle_do_entry(struct acpi_processor_cx *cx) | |||
826 | { | 826 | { |
827 | u64 perf_flags; | 827 | u64 perf_flags; |
828 | 828 | ||
829 | u64 pctrl; | ||
830 | |||
831 | /* Don't trace irqs off for idle */ | 829 | /* Don't trace irqs off for idle */ |
832 | stop_critical_timings(); | 830 | stop_critical_timings(); |
833 | perf_flags = hw_perf_save_disable(); | 831 | perf_flags = hw_perf_save_disable(); |
834 | pctrl = hw_perf_save_disable(); | ||
835 | if (cx->entry_method == ACPI_CSTATE_FFH) { | 832 | if (cx->entry_method == ACPI_CSTATE_FFH) { |
836 | /* Call into architectural FFH based C-state */ | 833 | /* Call into architectural FFH based C-state */ |
837 | acpi_processor_ffh_cstate_enter(cx); | 834 | acpi_processor_ffh_cstate_enter(cx); |
@@ -847,7 +844,6 @@ static inline void acpi_idle_do_entry(struct acpi_processor_cx *cx) | |||
847 | unused = inl(acpi_gbl_FADT.xpm_timer_block.address); | 844 | unused = inl(acpi_gbl_FADT.xpm_timer_block.address); |
848 | } | 845 | } |
849 | hw_perf_restore(perf_flags); | 846 | hw_perf_restore(perf_flags); |
850 | hw_perf_restore(pctrl); | ||
851 | start_critical_timings(); | 847 | start_critical_timings(); |
852 | } | 848 | } |
853 | 849 | ||