sched: Intoduce get_cpu_iowait_time_us()
authorArjan van de Ven <[email protected]>
Sun, 9 May 2010 15:25:23 +0000 (08:25 -0700)
committerIngo Molnar <[email protected]>
Sun, 9 May 2010 17:35:27 +0000 (19:35 +0200)
commit0224cf4c5ee0d7faec83956b8e21f7d89e3df3bd
treedaac87f9766d1a6c71bcff021414d3deaae40da1
parente0e37c200f1357db0dd986edb359c41c57d24f6e
sched: Intoduce get_cpu_iowait_time_us()

For the ondemand cpufreq governor, it is desired that the iowait
time is microaccounted in a similar way as idle time is.

This patch introduces the infrastructure to account and expose
this information via the get_cpu_iowait_time_us() function.

[[email protected]: fix CONFIG_NO_HZ=n build]
Signed-off-by: Arjan van de Ven <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Rik van Riel <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Cc: [email protected]
LKML-Reference: <20100509082523.284feab6@infradead.org>
Signed-off-by: Ingo Molnar <[email protected]>
include/linux/tick.h
kernel/time/tick-sched.c
kernel/time/timer_list.c