add doubletap2wake, completely rewritten on the s2w template

This is as easy to port as s2w, if not easier since no touchscreen
coords are necessary for it to work.

Just throw it in your tree, force the touchscreen to stay online and
you are done.

Signed-off-by: Dennis Rassmann <showp1984@gmail.com> (reverted from commit 9c6543c6a6ced3144ab8683aca098e07d11ec636) (reverted from commit 8e5ad420b0f8b7b3e6d3d39fa767480e182eb591)
intelli_plug: intelligent hotplug cpu driver with eco mode

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

Conflicts:
	arch/arm/mach-msm/Kconfig
	arch/arm/mach-msm/Makefile
intelli_plug: tweak for faster wakeup from suspend

bump version to 1.1

Signed-off-by: faux123 <reioux@gmail.com>
intelli_plug: increase cores on persistence

also replace hardcoded values with Macros for ease of updating later

Signed-off-by: faux123 <reioux@gmail.com>
intelli_plug: make it gcc-4.6.x eabi compatible :p

Signed-off-by: faux123 <reioux@gmail.com>
intelli_plug: use rq_stats to help detect artificial or constant loads

benchmarks often create fake / artificial loads at a constant rate.  These
type of loads are not detected corectly by run average algorithms. Use
the run queue stats to help detect these cases and bring up the cores in
correspondence.

bump version to 1.2

Signed-off-by: faux123 <reioux@gmail.com>
intelli_plug: use mp_decision() algorithm for core 3 and 4

This replaces the simplistic check for run queue thresholds with a more
sophisticate algorithm with time awareness

bump version to 1.3

Signed-off-by: faux123 <reioux@gmail.com>
intelli_plug: tweak mp_decsion parameters and remove unused logic

Signed-off-by: faux123 <reioux@gmail.com>
intelli_plug: bump threshold slightly for better response

Signed-off-by: faux123 <reioux@gmail.com>
wip: intelli_plug: change logic for better benchmark performance

Signed-off-by: faux123 <reioux@gmail.com>
intelli_plug: use mp_decision to reduce online persistence count for cores

this should bring down the cores faster when run queue is low
also optimized code a bit using local vars

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

let the user enable via sysfs so it won't clash with mpdecision which is
enabled by default for qualcomm phones

Signed-off-by: faux123 <reioux@gmail.com>
intelli_plug: slow down hotplug activity from 50ms to 200ms

this will reduce the hotplug chaos which may in turn save more power

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

Conflicts:
	arch/arm/mach-msm/intelli_plug.c
intelli_plug: code clean up and minor bug fixes

bump to version 1.6

Signed-off-by: Paul Reioux <reioux@gmail.com>
intelliplug: replaced deprecated early_suspend driver with userspace interface

early_suspend has been deprecated, so move original functionality to sysfs
interfae and have userspace app to replicate the early_suspend functionality

bump version to 1.7

Signed-off-by: Paul Reioux <reioux@gmail.com>
intelli_plug: add dynamic load sampling rate logic

Add dynamic sampling logic based on load. If load is high and required more
than 2 cores, increase the sampling rate for a duration of 3 seconds to help
manage the load better during this time.  Once duration expires, revert back
to lazier sampling rate for better batter performance.

Signed-off-by: Paul Reioux <reioux@gmail.com>
intelli_plug: add new power_suspend PM driver

bump version to 1.9

Signed-off-by: Paul Reioux <reioux@gmail.com>
intelli_plug: add touch input logic

changed intelli_plug sampling rates and bump to version 2.0

Signed-off-by: Paul Reioux <reioux@gmail.com>
intelli_plug: use a context safe function call instead

Signed-off-by: Paul Reioux <reioux@gmail.com>
intelli_plug: performance tune-up continued...

Signed-off-by: Paul Reioux <reioux@gmail.com>
intelli_plug: switch to use dedicated high priority workqueue

from the shared global workqueue.  This should prevent hang ups while the
global workqueue is busy and cleaned up some logic issues.

give input boost its own workqueue

bump to version 2.2

Signed-off-by: Paul Reioux <reioux@gmail.com>
intelli_plug: code review clean up

set def sampling rate to something sane rather than zero (instantaneous
rescheduling is not good if intelli_plug is disabled)

make touch input more generic rather than tied to a touchscreen driver

remove unused code

thanks to @dorimanx for the code reviews and suggestions

bump to version 2.3

Signed-off-by: Paul Reioux <reioux@gmail.com>
intelli_plug: Fixes & bump to version 2.4 by dorimanx
Intelli HotPlug v3.0 Big rework by @Alucard24 and @Dorimanx

https://github.com/Alucard24/Alucard-Kernel-jfltexx/commit/8ca20118887c702df098878a43732bd3cd099ae6
https://github.com/Alucard24/Alucard-Kernel-jfltexx/commit/633a32e408278f4afab5e135df3ce9a29a10c361
https://github.com/Alucard24/Alucard-Kernel-jfltexx/commit/47a45fbd9a368e35bbb7320b3d5263fcc6258d31
https://github.com/Alucard24/Alucard-Kernel-jfltexx/commit/a2bd85a2908ee3e9aceb2b53e1a3d92f54d403ce

BRAVO! to US! :)
Optimized intelli_plug.
Intelli HotPlug fixes!

intelli Hotplug can be selected via STweaks only.
or till faux will add nw path to his app!

/sys/kernel/intelli_plug/intelli_plug_active

-rw-rw-r--    1 root     root          4096 Mar 27 13:58 busy_persistence
-rw-rw-r--    1 root     root          4096 Mar 27 13:58 busy_sampling_ms
-rw-rw-r--    1 root     root          4096 Mar 27 13:58 cpu_down_factor
-rw-rw-r--    1 root     root          4096 Mar 27 13:58 debug_intelli_plug
-rw-rw-r--    1 root     root          4096 Mar 27 13:58 def_sampling_ms
-rw-rw-r--    1 root     root          4096 Mar 27 13:58 dual_core_persistence
-rw-rw-r--    1 root     root          4096 Mar 27 13:58 eco_mode_active
-rw-rw-r--    1 root     root          4096 Mar 27 13:58 intelli_plug_active
-rw-rw-r--    1 root     root          4096 Mar 27 13:58 nr_fshift
-rw-rw-r--    1 root     root          4096 Mar 27 13:58 nr_run_hysteresis
-rw-rw-r--    1 root     root          4096 Mar 27 13:58 quad_core_persistence
-rw-rw-r--    1 root     root          4096 Mar 27 13:58 strict_mode_active
-rw-rw-r--    1 root     root          4096 Mar 27 13:58 tri_core_persistence
Mod Intelli HotPlug
Fixed Intelli HotPlug Driver. now works! and not killing CPU on Stress.

Driver was using too high msec value! it's not USEC! it's MSEC!

Normal CPU operation needs 10000 to 80000 usec! that = 10 to 80 MSEC
Intelli HotPlug add protection for too high values! that user can set.
Intelli HotPlug: Prevent deadlock! Idea by @alucard24

https://github.com/Alucard24/Alucard-Kernel-jfltexx/commit/397a521941954378ec19846efbaa1722aefde6a5
Revert "Intelli HotPlug: V3.1 Corrected Gov Start/Stop."

This reverts commit 004de0cafe05a1c3566a3ad8e87decaecb233de0.
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>

Conflicts:
	arch/arm/mach-msm/lge/board-8974-hammerhead.c
	drivers/thermal/Makefile
SM-G900T: initial Android kernel patches

Signed-off-by: Paul Reioux <reioux@gmail.com>
cpfreq: Added Zzmoove 0.7d CPU governor
drivers/cpufreq: update Zzmoove to v0.8
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>
compilation: fix up for mismatched type for system_rev

Signed-off-by: Paul Reioux <reioux@gmail.com>
Revert "add doubletap2wake, completely rewritten on the s2w template"

This reverts commit a01258f51bc8658285169962a620ac1097b9bd95.