msm8960_tsens: enable all thermal devices

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Lens-F <tnoah12@gmail.com>
add 3-phase bricked_msm_thermal [read more]

Removed crpalmers thermal driver and adjusted m7 board instead of board-8974-hammerhead

Signed-off-by: Lens-F <tnoah12@gmail.com>
thermal: export throttle indicator and don't input boost if we are throttled

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Lens-F <tnoah12@gmail.com>
thermal: fix incompatibilies caused by file renaming

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Lens-F <tnoah12@gmail.com>
msm_thermal: replace CONFIG_MSM_CPU_FREQ_MAX with max freq

Signed-off-by: Lens-F <tnoah12@gmail.com>
lemur_defconfig: enable bricked_thermal

Signed-off-by: Lens-F <tnoah12@gmail.com>
Makefile: remove unnecessary makefile flags in AFLAGS

Signed-off-by: Lens-F <tnoah12@gmail.com>
exfat: hacked name for HTC's hardcoded vold

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: flar2 <asegaert@gmail.com>
exfat: more HTC vold mount option hacks!

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: flar2 <asegaert@gmail.com>
Revert "mm: Adjust dirty writeback for IO boost"

This reverts commit 3f1a9b43dcd29ea3f21b0754eb41b65f5eabf2c9.
slim down cpufreq [read more]

remove older cpufreq governors that are basically unnecessary and will most likely cause more memory loss....doing more harm than good.

Signed-off-by: Lens-F <tnoah12@gmail.com>
kbuild: drop cpuinit/cpuexit checks in modpost

With the removal of cpuinit/cpuexit we no longer need to
do section mismatch checks on these sections.

Drop it from modpost.

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Lens-F <tnoah12@gmail.com>
aroma update [read more]

Alot of edits in aroma with a lot of changes deletions updates and additions related to the new thermal and mpdecision solutions that were added and also the removal of deprecated governors.

Signed-off-by: Lens-F <tnoah12@gmail.com>
fix syntax error in aroma

Signed-off-by: Lens-F <tnoah12@gmail.com>
squash: ZRAM

Signed-off-by: Lens-F <tnoah12@gmail.com>
update build info and remove thermal and color control from aroma
sched/fair: Optimize cgroup pick_next_task_fair()

Since commit 2f36825b1 ("sched: Next buddy hint on sleep and preempt
path") it is likely we pick a new task from the same cgroup, doing a put
and then set on all intermediate entities is a waste of time, so try to
avoid this.

Measured using:

  mount nodev /cgroup -t cgroup -o cpu
  cd /cgroup
  mkdir a; cd a
  mkdir b; cd b
  mkdir c; cd c
  echo $$ > tasks
  perf stat --repeat 10 -- taskset 1 perf bench sched pipe

PRE :      4.542422684 seconds time elapsed   ( +-  0.33% )
POST:      4.389409991 seconds time elapsed   ( +-  0.32% )

Which shows a significant improvement of ~3.5%

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tejun Heo <tj@kernel.org>
Link: http://lkml.kernel.org/r/1328936700.2476.17.camel@laptop
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Paul Reioux <reioux@gmail.com>

Backported for Linux 3.4 kernel

Conflicts:
	kernel/sched/fair.c
Signed-off-by: poondog <markj338@gmail.com>
msm: audio: qdsp6v2: Zero the cfg stack var

Write zeroes into the stack variable cfg to ensure
no previously written stack data is sent to
user-space.

Change-Id: Iea124d2528ed56d93e2a000027ff8bc30414d3fd
CRs-Fixed: 551574
Signed-off-by: Kenneth Westfield <kwestfie@codeaurora.org>
Signed-off-by: poondog <markj338@gmail.com>
msm: audio: qdsp6v2: Check return code from audio_aio_open()

When audio_aio_open() is triggered in blocking fashion, it  frees audio
resouces and returns error code. In the current implementation,  callers
did not check the error code which can lead to dereference to freed
resources and cause system crash.  Update the callers to check return
code and then return error back to application to avoid the issue. In
the meanwhile, update the audio_aio_open not to free memory for caller
and leave the caller to free the memory in error condition.

CRs-fixed: 436653
Change-Id: If4dda158cb988c5837517817b1afa0572c30696e
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
Signed-off-by: poondog <markj338@gmail.com>

Conflicts:
	arch/arm/mach-msm/qdsp6v2/audio_amrnb.c
	arch/arm/mach-msm/qdsp6v2/audio_amrwb.c
	arch/arm/mach-msm/qdsp6v2/audio_evrc.c
	arch/arm/mach-msm/qdsp6v2/audio_mp3.c
	arch/arm/mach-msm/qdsp6v2/audio_qcelp.c
	arch/arm/mach-msm/qdsp6v2/audio_wma.c
	arch/arm/mach-msm/qdsp6v2/audio_wmapro.c
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: poondog <markj338@gmail.com>
Signed-off-by: Lens-F <tnoah12@gmail.com>

Conflicts:
	kernel/workqueue.c