diff options
author | Sai Charan Gurrappadi <sgurrappadi@nvidia.com> | 2012-07-25 08:37:14 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 12:32:20 -0700 |
commit | 037ff9dcf4ad2b8e0a9af30791b080a658059c40 (patch) | |
tree | 42e20eb96b2354e90270612d012600a5eaf3865d /include/linux/sched.h | |
parent | 2aa434c4bd423314c5770f92a384ab1d63ed0202 (diff) |
cpuquiet: Runnable threads governor
[perf] The runnable threads governor only looks at the average number of
runnables in the system to make a decision when bringing cores
offline/online. First pass; tweaks thresholds and delays to reduce
decision latency to about ~50-70ms per core (from ~100-150ms per core)
Change-Id: Idd3b268a74a8f56ad3fc0e5c7f388174d1b6611f
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/124679
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Rebase-Id: R176b97c14a54c057c2e7f4e57237e839ac714d88
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 03f9d6350f00..8653fd45e4a7 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -100,6 +100,7 @@ DECLARE_PER_CPU(unsigned long, process_counts); extern int nr_processes(void); extern unsigned long nr_running(void); extern unsigned long nr_iowait(void); +extern unsigned long get_avg_nr_running(unsigned int cpu); extern unsigned long avg_nr_running(void); extern unsigned long nr_iowait_cpu(int cpu); extern unsigned long this_cpu_load(void); |