summaryrefslogtreecommitdiff
path: root/kernel/sched/debug.c
diff options
context:
space:
mode:
authorJeff Ohlstein <johlstei@codeaurora.org>2012-06-19 15:59:46 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:01:32 -0700
commitb0ccf5db311522b91cb770ce4c245a3f029b4ad5 (patch)
tree81461a97d9df18f34b75d37f90149b8718609dbf /kernel/sched/debug.c
parentf4a6c4e3279218b9212a89b710b127b76cde8c4c (diff)
sched_avg: add run queue averaging
Add code to calculate the run queue depth of a cpu and iowait depth of the cpu. The scheduler calls in to sched_update_nr_prod whenever there is a runqueue change. This function maintains the runqueue average and the iowait of that cpu in that time interval. Whoever wants to know the runqueue average is expected to call sched_get_nr_running_avg periodically to get the accumulated runqueue and iowait averages for all the cpus. Change-Id: Id8cb2ecf0ed479f090a83ccb72dd59c53fa73e0c Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org> (cherry picked from commit 0299fcaaad80e2c0ac9aa583c95107f6edc27750) [rameezmustafa@codeaurora.org: Port to msm-3.18] Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
Diffstat (limited to 'kernel/sched/debug.c')
0 files changed, 0 insertions, 0 deletions