aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/processor_idle.c4
-rw-r--r--drivers/char/sysrq.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index 4e6e758bd39..429be896a03 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -757,8 +757,11 @@ static int acpi_idle_bm_check(void)
757 */ 757 */
758static inline void acpi_idle_do_entry(struct acpi_processor_cx *cx) 758static inline void acpi_idle_do_entry(struct acpi_processor_cx *cx)
759{ 759{
760 u64 perf_flags;
761
760 /* Don't trace irqs off for idle */ 762 /* Don't trace irqs off for idle */
761 stop_critical_timings(); 763 stop_critical_timings();
764 perf_flags = hw_perf_save_disable();
762 if (cx->entry_method == ACPI_CSTATE_FFH) { 765 if (cx->entry_method == ACPI_CSTATE_FFH) {
763 /* Call into architectural FFH based C-state */ 766 /* Call into architectural FFH based C-state */
764 acpi_processor_ffh_cstate_enter(cx); 767 acpi_processor_ffh_cstate_enter(cx);
@@ -773,6 +776,7 @@ static inline void acpi_idle_do_entry(struct acpi_processor_cx *cx)
773 gets asserted in time to freeze execution properly. */ 776 gets asserted in time to freeze execution properly. */
774 unused = inl(acpi_gbl_FADT.xpm_timer_block.address); 777 unused = inl(acpi_gbl_FADT.xpm_timer_block.address);
775 } 778 }
779 hw_perf_restore(perf_flags);
776 start_critical_timings(); 780 start_critical_timings();
777} 781}
778 782
diff --git a/drivers/char/sysrq.c b/drivers/char/sysrq.c
index 6de020d078e..0540d5de2c1 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}
248static struct sysrq_key_op sysrq_showregs_op = { 250static struct sysrq_key_op sysrq_showregs_op = {
249 .handler = sysrq_handle_showregs, 251 .handler = sysrq_handle_showregs,