Skip to content

Commit 6589c93

Browse files
svens-s390hcahca
authored andcommitted
s390: add trace events for idle enter/exit
Helpful for debugging. Signed-off-by: Sven Schnelle <[email protected]> Reviewed-by: Heiko Carstens <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
1 parent 7b7735c commit 6589c93

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/s390/kernel/idle.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <linux/init.h>
1515
#include <linux/cpu.h>
1616
#include <linux/sched/cputime.h>
17+
#include <trace/events/power.h>
1718
#include <asm/nmi.h>
1819
#include <asm/smp.h>
1920
#include "entry.h"
@@ -32,11 +33,12 @@ void enabled_wait(void)
3233
PSW_MASK_IO | PSW_MASK_EXT | PSW_MASK_MCHECK;
3334
clear_cpu_flag(CIF_NOHZ_DELAY);
3435

36+
trace_cpu_idle_rcuidle(1, smp_processor_id());
3537
local_irq_save(flags);
3638
/* Call the assembler magic in entry.S */
3739
psw_idle(idle, psw_mask);
3840
local_irq_restore(flags);
39-
41+
trace_cpu_idle_rcuidle(PWR_EVENT_EXIT, smp_processor_id());
4042

4143
/* Account time spent with enabled wait psw loaded as idle time. */
4244
write_seqcount_begin(&idle->seqcount);

0 commit comments

Comments
 (0)