sched: Consider max cost of idle balance per sched domain

Date    Thu, 29 Aug 2013 13:05:35 -0700

In this patch, we keep track of the max cost we spend doing idle load balancing
for each sched domain. If the avg time the CPU remains idle is less then the
time we have already spent on idle balancing + the max cost of idle balancing
in the sched domain, then we don't continue to attempt the balance. We also
keep a per rq variable, max_idle_balance_cost, which keeps track of the max
time spent on newidle load balances throughout all its domains. Additionally,
we swap sched_migration_cost used in idle_balance for rq->max_idle_balance_cost.

By using the max, we avoid overrunning the average. This further reduces the chance
we attempt balancing when the CPU is not idle for longer than the cost to balance.

I also limited the max cost of each domain to 5*sysctl_sched_migration_cost as
a way to prevent the max from becoming too inflated.

Signed-off-by: Jason Low <jason.low2@hp.com>

backported for Linux 3.4

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: Rob Beane <robbeane@gmail.com>
sched: document the difference between nr_running and h_nr_running

Date    Sun, 18 Aug 2013 16:25:22 +0800

Signed-off-by: Lei Wen <leiwen@marvell.com>

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: Rob Beane <robbeane@gmail.com>
Revert "Battery Life eXtender kernel module for msm8974"

Change-Id: I17ee26ea47024c86469707e42bebb5385db66919
Signed-off-by: Rob Beane <robbeane@gmail.com>
Revert "scripts: Use wrapper to check compiler warnings"

Change-Id: I199fb5fc37f9116258af44b1f33daa521dc0399b
Signed-off-by: Rob Beane <robbeane@gmail.com>
init: Disable kernel debugging by default

Change-Id: Ia4651a13450ff9fc1b6d39866884e0556dd4e27c
Signed-off-by: Rob Beane <robbeane@gmail.com>
buildme: Remove building KControl GPU module

Change-Id: I8ab45b5922e2bb704111981fba36aa707fd170ef
Signed-off-by: Rob Beane <robbeane@gmail.com>