Skip to content

Commit 632448f

Browse files
heicarstMartin Schwidefsky
authored andcommitted
[S390] ftrace: disable tracing on idle psw
Disable tracing on idle psw. Otherwise it would give us huge preempt off times for idle. Which is rather pointless. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent af4c687 commit 632448f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎arch/s390/kernel/process.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,12 @@ static void default_idle(void)
136136
return;
137137
}
138138
trace_hardirqs_on();
139+
/* Don't trace preempt off for idle. */
140+
stop_critical_timings();
139141
/* Wait for external, I/O or machine check interrupt. */
140142
__load_psw_mask(psw_kernel_bits | PSW_MASK_WAIT |
141143
PSW_MASK_IO | PSW_MASK_EXT);
144+
start_critical_timings();
142145
}
143146

144147
void cpu_idle(void)

0 commit comments

Comments
 (0)