Skip to content

Commit

Permalink
[S390] ftrace: disable tracing on idle psw
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Nov 14, 2008
1 parent af4c687 commit 632448f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/s390/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,12 @@ static void default_idle(void)
return;
}
trace_hardirqs_on();
/* Don't trace preempt off for idle. */
stop_critical_timings();
/* Wait for external, I/O or machine check interrupt. */
__load_psw_mask(psw_kernel_bits | PSW_MASK_WAIT |
PSW_MASK_IO | PSW_MASK_EXT);
start_critical_timings();
}

void cpu_idle(void)
Expand Down

0 comments on commit 632448f

Please sign in to comment.