diff options
author | Sven Schnelle <svens@linux.ibm.com> | 2020-07-08 12:21:25 +0300 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2020-07-10 16:08:27 +0300 |
commit | 6589c93f99894e007a1260f009018effc958ab69 (patch) | |
tree | 7b5baed9b1d174558c4fd31d9749319fc9464815 | |
parent | 7b7735c5be473473d7a4b9e31460ed8e129dcb36 (diff) | |
download | linux-6589c93f99894e007a1260f009018effc958ab69.tar.xz |
s390: add trace events for idle enter/exit
Helpful for debugging.
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
-rw-r--r-- | arch/s390/kernel/idle.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/s390/kernel/idle.c b/arch/s390/kernel/idle.c index 0d7fbdfe995a..88bb42ca5008 100644 --- a/arch/s390/kernel/idle.c +++ b/arch/s390/kernel/idle.c @@ -14,6 +14,7 @@ #include <linux/init.h> #include <linux/cpu.h> #include <linux/sched/cputime.h> +#include <trace/events/power.h> #include <asm/nmi.h> #include <asm/smp.h> #include "entry.h" @@ -32,11 +33,12 @@ void enabled_wait(void) PSW_MASK_IO | PSW_MASK_EXT | PSW_MASK_MCHECK; clear_cpu_flag(CIF_NOHZ_DELAY); + trace_cpu_idle_rcuidle(1, smp_processor_id()); local_irq_save(flags); /* Call the assembler magic in entry.S */ psw_idle(idle, psw_mask); local_irq_restore(flags); - + trace_cpu_idle_rcuidle(PWR_EVENT_EXIT, smp_processor_id()); /* Account time spent with enabled wait psw loaded as idle time. */ write_seqcount_begin(&idle->seqcount); |