perf/debug: disable some debug

Following my changes on Bacon, let's disable this here as well

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
bluactive: don't scale beyond min if the load is low

by franciscofranco

Signed-off-by: engstk <eng.stk@sapo.pt>
defconfig: use smp idle threads

Signed-off-by: engstk <eng.stk@sapo.pt>
blu_plug: Dynamic hotplug driver for hammerhead
Squashed, based on dyn_hotplug by stratosk
Improvements, fixes, changes and ported to hammerhead by eng.stk <eng.stk@sapo.pt>

Signed-off-by: engstk <eng.stk@sapo.pt>

Conflicts:
	arch/arm/mach-msm/Kconfig
	arch/arm/mach-msm/Makefile

Signed-off-by: engstk <eng.stk@sapo.pt>
defconfig: enable blu_plug

Signed-off-by: engstk <eng.stk@sapo.pt>

Conflicts:
	arch/arm/configs/code_blue_hammerhead-l_defconfig

Signed-off-by: engstk <eng.stk@sapo.pt>
cpufreq: create a helper function to get CPU utilization. Picked from @stratosk

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
blu_plug: improvements and fixes
* Driver recode and rework
* Improve suspend/resume routines
* Improve load calculations and plu/unplug routines
* Better work and queue management
* Fix merge derps and unplug if down_timer_cnt is set lower than up_timer_cnt thanks @kagwind
* Use original stratosk load calculation, link to cpu governor
* Add debug stuff
* Add min_cpu_offscreen tunable
* Other  misc. that I forgot ;p

Signed-off-by: engstk <eng.stk@sapo.pt>

Conflicts:
	drivers/cpufreq/cpufreq_intelliactive.c

Signed-off-by: engstk <eng.stk@sapo.pt>
blu_plug: Tune initial values, down_timer_cnt can't be lower than up__timer_cnt, missing bits, small fixes

Signed-off-by: engstk <eng.stk@sapo.pt>
blu_plug: Set up_threshold to 70, let's try without  jiffies

Signed-off-by: engstk <eng.stk@sapo.pt>
blu_active: Since we got blu_plug, let's rename and keep it linear

Signed-off-by: engstk <eng.stk@sapo.pt>

Conflicts:
	arch/arm/configs/code_blue_hammerhead_defconfig
	drivers/cpufreq/Kconfig
	drivers/cpufreq/Makefile
	include/linux/cpufreq.h

Conflicts:
	arch/arm/configs/code_blue_hammerhead_defconfig

Signed-off-by: engstk <eng.stk@sapo.pt>
blu_plug: add max_freq_screenoff, reworked suspend/resume, misc fixes

Signed-off-by: engstk <eng.stk@sapo.pt>
blu_plug: add powersaver mode, misc fixes
* When in powersaving, device has 1 core online @ 1728 MHz

Signed-off-by: engstk <eng.stk@sapo.pt>
blu_plug: fix powersaver_mode when screenoff to save more juice

Signed-off-by: engstk <eng.stk@sapo.pt>
makefile: use arm-cortex_a15-linux-gnueabihf-linaro_4.9.2-2014.08 toolchain by default

Signed-off-by: engstk <eng.stk@sapo.pt>
blu_plug: driver is always enabled

Signed-off-by: engstk <eng.stk@sapo.pt>
Revert "epoll: use freezable blocking call"

This reverts commit 282eec2fe6bb805f75714c30a8f3965938f5d256.

Signed-off-by: engstk <eng.stk@sapo.pt>
blu_active: rework driver and merge upstream
* Linux 3.5 improvements
* CAF and myfluxi fixes
* Use governor native boost to input_boost (thanks to faux123 for the idea)

Signed-off-by: engstk <eng.stk@sapo.pt>
cpufreq: Manage only online cpus

cpufreq core doesn't manage offline cpus and if driver->init() has returned
mask including offline cpus, it may result in unwanted behavior by cpufreq core
or governors.

We need to get only online cpus in this mask. There are two places to fix this
mask, cpufreq core and cpufreq driver. It makes sense to do this at common place
and hence is done in core.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
nohz: Reduce overhead under high-freq idling patterns

One testbox of mine (Intel Nehalem, 16-way) uses MWAIT for its idle routine,
which apparently can break out of its idle loop rather frequently, with
high frequency.

In that case NO_HZ_FULL=y kernels show high ksoftirqd overhead and constant
context switching, because tick_nohz_stop_sched_tick() will, if
delta_jiffies == 0, mis-identify this as a timer event - activating the
TIMER_SOFTIRQ, which wakes up ksoftirqd.

Fix this by treating delta_jiffies == 0 the same way we treat other short
wakeups, delta_jiffies == 1.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Chris Metcalf <cmetcalf@tilera.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Geoff Levand <geoff@infradead.org>
Cc: Gilad Ben Yossef <gilad@benyossef.com>
Cc: Hakan Akkan <hakanakkan@gmail.com>
Cc: Kevin Hilman <khilman@linaro.org>
Cc: Li Zhong <zhong@linux.vnet.ibm.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
defconfig: clean

Signed-off-by: engstk <eng.stk@sapo.pt>