diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/processor_idle.c | 4 | ||||
-rw-r--r-- | drivers/char/sysrq.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 7bc22a471fe3..08def2f20cd9 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c | |||
@@ -824,8 +824,11 @@ static int acpi_idle_bm_check(void) | |||
824 | */ | 824 | */ |
825 | static inline void acpi_idle_do_entry(struct acpi_processor_cx *cx) | 825 | static inline void acpi_idle_do_entry(struct acpi_processor_cx *cx) |
826 | { | 826 | { |
827 | u64 perf_flags; | ||
828 | |||
827 | /* Don't trace irqs off for idle */ | 829 | /* Don't trace irqs off for idle */ |
828 | stop_critical_timings(); | 830 | stop_critical_timings(); |
831 | perf_flags = hw_perf_save_disable(); | ||
829 | if (cx->entry_method == ACPI_CSTATE_FFH) { | 832 | if (cx->entry_method == ACPI_CSTATE_FFH) { |
830 | /* Call into architectural FFH based C-state */ | 833 | /* Call into architectural FFH based C-state */ |
831 | acpi_processor_ffh_cstate_enter(cx); | 834 | acpi_processor_ffh_cstate_enter(cx); |
@@ -840,6 +843,7 @@ static inline void acpi_idle_do_entry(struct acpi_processor_cx *cx) | |||
840 | gets asserted in time to freeze execution properly. */ | 843 | gets asserted in time to freeze execution properly. */ |
841 | unused = inl(acpi_gbl_FADT.xpm_timer_block.address); | 844 | unused = inl(acpi_gbl_FADT.xpm_timer_block.address); |
842 | } | 845 | } |
846 | hw_perf_restore(perf_flags); | ||
843 | start_critical_timings(); | 847 | start_critical_timings(); |
844 | } | 848 | } |
845 | 849 | ||
diff --git a/drivers/char/sysrq.c b/drivers/char/sysrq.c index 33a9351c896d..fa71b84f217b 100644 --- a/drivers/char/sysrq.c +++ b/drivers/char/sysrq.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <linux/kbd_kern.h> | 25 | #include <linux/kbd_kern.h> |
26 | #include <linux/proc_fs.h> | 26 | #include <linux/proc_fs.h> |
27 | #include <linux/quotaops.h> | 27 | #include <linux/quotaops.h> |
28 | #include <linux/perf_counter.h> | ||
28 | #include <linux/kernel.h> | 29 | #include <linux/kernel.h> |
29 | #include <linux/module.h> | 30 | #include <linux/module.h> |
30 | #include <linux/suspend.h> | 31 | #include <linux/suspend.h> |
@@ -244,6 +245,7 @@ static void sysrq_handle_showregs(int key, struct tty_struct *tty) | |||
244 | struct pt_regs *regs = get_irq_regs(); | 245 | struct pt_regs *regs = get_irq_regs(); |
245 | if (regs) | 246 | if (regs) |
246 | show_regs(regs); | 247 | show_regs(regs); |
248 | perf_counter_print_debug(); | ||
247 | } | 249 | } |
248 | static struct sysrq_key_op sysrq_showregs_op = { | 250 | static struct sysrq_key_op sysrq_showregs_op = { |
249 | .handler = sysrq_handle_showregs, | 251 | .handler = sysrq_handle_showregs, |