overall_stats: add overall stats for all available cores

this is much more accurate stats tracking than just displaying core 0's
stats from most other kernels

Signed-off-by: faux123 <reioux@gmail.com>

overall_stats: make dual/quad core stats configurable via meunconfig

Signed-off-by: faux123 <reioux@gmail.com>

overall_stats: forward port to kernel 3.4+

by replacing deprecated functions with native add/sub for 64bit data types

Change-Id: I1e17d626bf59b3c0822c9f1088093f848fd2649c
Signed-off-by: faux123 <reioux@gmail.com>
powersuspend: new PM kernel driver for Android w/o early_suspend

Android early_suspend/late_resume PM kernel driver framework has been
deprecated by Google. This new powersuspend PM kernel driver is a replacement
for it and existing early_suspend drivers can be easily adapted to use this
new replacement driver

Signed-off-by: Paul Reioux <reioux@gmail.com>

Conflicts:
	kernel/power/Kconfig

powersuspend: fix logci derps :p

Signed-off-by: Paul Reioux <reioux@gmail.com>

kernel/power/powersuspend: remove userspace dependency from powersuspend

make powersuspend not depend on a userspace initiator anymore, but use a hook
in autosleep instead.

Signed-off-by: Paul Reioux <reioux@gmail.com>

kernel/power/powersuspend: add back userpace control w/ default kernel control

make kernel / userspace mode switchable

Signed-off-by: Paul Reioux <reioux@gmail.com>

kernel/power/powersuspend: default to userspace for now

Signed-off-by: Paul Reioux <reioux@gmail.com>

kernel/power/powersuspend: LCD screen on/off hooks (Yank555.lu)

- add an alternative hook for screen on / off detection in the display
  pannel driver
- sleeps  ~0.1s sooner, wakes up ~1s later then autosleep
- clean up source formatting a bit (Paul Reioux)

Signed-off-by: Paul Reioux <reioux@gmail.com>

kernel/power/powersuspend: cumulative update to version 1.5

- fix hybrid-kernel mode cannot be set through sysfs

kernel/power/powersuspend: new PM kernel driver for Android w/o early_suspend v1.4 (Yank555.lu)

- add hybrid-kernel mode (autosleep and panel, first wins)
- default to hybrid-kernel mode
- harmonize debug message with my other stuff
- include all 3 modes as default, so it's only commenting out to change

kernel/power/powersuspend: new PM kernel driver for Android w/o early_suspend v1.3 (Yank555.lu)

- fix stupid typo
- add an alternative hook for screen on / off detection in the display panel driver
(sleeps ~0.1s sooner, wakes up ~1s later then autosleep)

kernel/power/powersuspend: new PM kernel driver for Android w/o early_suspend v1.2 (Yank555.lu)

- make kernel / userspace mode switchable

kernel/power/powersuspend: new PM kernel driver for Android w/o early_suspend v1.1 (Yank555.lu)

- make powersuspend not depend on a userspace initiator anymore, but use a hook in autosleep instead.

kernel/power/powersuspend: new PM kernel driver for Android w/o early_suspend (faux123)

Android early_suspend/late_resume PM kernel driver framework has been
deprecated by Google. This new powersuspend PM kernel driver is a replacement
for it and existing early_suspend drivers can be easily adapted to use this
new replacement driver

Change-Id: I3400b596ee988cc6f7beb4e8d0c60a003afde2bb
Signed-off-by: Paul Reioux <reioux@gmail.com>
intelli_plug: refactor stats calculation code to be less intrusive

this is done for those kernels which do not have 100% source code available
and must use existing closed source modules such as wifi drivers

Signed-off-by: Paul Reioux <reioux@gmail.com>

Conflicts:
	arch/arm/hotplug/intelli_plug.c

Change-Id: I7ebd99b4fb3b55c0a39d64448e86c57cac6acaea
Intelli_plug: kernel sched/core: add per cpu nr_running stats

Change-Id: I4e8ed76e27c63270b3d106de1b85a52bb0bbe822
Signed-off-by: Paul Reioux <reioux@gmail.com>
Intelli_plug: cumulative patch to version 3.8

An intelligent hotplug driver for ARM based SOCs.
Copyright 2012~2014 Paul Reioux (aka Faux123)

Change-Id: Ic5e539be262d298255d50ef8835afe80c489aef9
Signed-off-by: Paul Reioux <reioux@gmail.com>
cpufreq: revert CAF's cpu policy save code

this code is deprecated by sibling cpu policy sharing

Change-Id: Icde1cc84da03ca1571b64fa52d54dffa2a57981e
Signed-off-by: Paul Reioux <reioux@gmail.com>

Conflicts:
	drivers/cpufreq/cpufreq.c
intelli/msm_thermal: initial coding for Qualcomm Snapdragon 800 devices

an intelligent MSM thermal throttling kernel driver designed to replace the
closed sourced thermald(aemon) from Qualcomm.

The current driver can throttle the SOC via core frequency scaling or via
core hotplug with user configurable sysfs entries to adjust the throttling
temperature thresholds for each.

Derived from Qualcomm's Open source repo.

Signed-off-by: Paul Reioux <reioux@gmail.com>
intelli-thermal: use its own dedicated workqueue

this should reduce the load on the shared global workqueue for other
processes and also give its own unique variable name for cpu limit

Signed-off-by: Paul Reioux <reioux@gmail.com>
intelli-thermal: increase sampling time to reduce sampling overhead

Signed-off-by: Paul Reioux <reioux@gmail.com>
drivers/thermal/Kconfig: fix default prompt error

Signed-off-by: Paul Reioux <reioux@gmail.com>
intellidemand: re-introduce intellidemand 5.5 cpu governor

Signed-off-by: Paul Reioux <reioux@gmail.com>

Conflicts:
	drivers/cpufreq/Kconfig
	drivers/cpufreq/Makefile
	include/linux/cpufreq.h

Conflicts:
	arch/arm/configs/m8whl_defconfig
	bootSP.img

Conflicts:
	boot.img
intellidemand: tweak default settings for MSM8974 SOCs

Signed-off-by: Paul Reioux <reioux@gmail.com>
update defconfig
fix cpufreq kconfig bad merge
Revert "fs: exFat"

This reverts commit 9c8dc5543a0d660477a535320213780df6704b3e.

Conflicts:
	arch/arm/configs/m8_defconfig
	boot.img

Conflicts:
	arch/arm/configs/m8whl_defconfig

Conflicts:
	arch/arm/configs/m8_defconfig
exFAT: add support from Samsungs open source driver

Signed-off-by: EvolutionMod <kernelcraft@gmail.com>

Conflicts:
	arch/arm/configs/codecraft_defconfig

Conflicts:
	boot.img
exfat: hacked name for HTC's hardcoded vold

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

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: EvolutionMod <kernelcraft@gmail.com>
exFAT: fix merge derp

Signed-off-by: EvolutionMod <kernelcraft@gmail.com>
exFAT: Bring up from dorimanx/exfat-nofuse

Signed-off-by: EvolutionMod <kernelcraft@gmail.com>