intelli_plug: get rid of __cpuinit

This is a follow-up to commit 9eeb559

Change-Id: I9a8776fa6d4aa055f4f9934eee9cda3999cddcde
Signed-off-by: Rob Beane <robbeane@gmail.com>
We liked this for mako, let's slowly try this for hammerhead

Change-Id: I1e2e5cc489e45867b8e738a66cadbe6ae9e31285
Signed-off-by: Rob Beane <robbeane@gmail.com>
cpufreq: intelliactive: squash some upstream commits

cpufreq: interactive: Remove unnecessary cpu_online() check
cpufreq: interactive: fix compiling warnings
cpufreq: interactive: Move definition of cpufreq_gov_interactive downwards

Change-Id: I3f1ffd4e4b58f955d80f4535263dcbb66151721c
Signed-off-by: Rob Beane <robbeane@gmail.com>
cpufreq: intelliactive: Tune governor (via @neobuddy89)

Also set Intelliactive as default governor

Change-Id: Ibd6f3465e8f6b6d95b1c3fcc996d4e0177eb4bec
Signed-off-by: Rob Beane <robbeane@gmail.com>
msm: kgsl: Tune simple governor based on @faux123 settings

Change-Id: Iebe77d9f447f5d093cf260415cd219e4b48951a5
Signed-off-by: Rob Beane <robbeane@gmail.com>
mmc: core: Disable crc check

Change-Id: I70a4b4c46339b384b08d7a2f172a199a3398acf8
Signed-off-by: Rob Beane <robbeane@gmail.com>
arm: mach-msm: Disable MSM Run Queue stats

via @myfluxi

Change-Id: I377eb0254c2a280cdaf280df77c2bb6b932695b1
Signed-off-by: Rob Beane <robbeane@gmail.com>
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>
workqueues: Introduce new flag WQ_POWER_EFFICIENT for power oriented workqueues

Adapted for 3.4 from lsk-v3.10

Workqueues can be performance or power-oriented. Currently, most workqueues are
bound to the CPU they were created on. This gives good performance (due to cache
effects) at the cost of potentially waking up otherwise idle cores (Idle from
scheduler's perspective. Which may or may not be physically idle) just to
process some work. To save power, we can allow the work to be rescheduled on a
core that is already awake.

Workqueues created with the WQ_UNBOUND flag will allow some power savings.
However, we don't change the default behaviour of the system.  To enable
power-saving behaviour, a new config option CONFIG_WQ_POWER_EFFICIENT needs to
be turned on. This option can also be overridden by the
workqueue.power_efficient boot parameter.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Rob Beane <robbeane@gmail.com>
defconfig: Update for new WQ_POWER_EFFICIENT

Change-Id: I1c2edca7a1b176e80891e125ef70e891f700f173
Signed-off-by: Rob Beane <robbeane@gmail.com>
hammerhead: correct misuse of #if directive

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