cpufreq: enable sibling cpu policy sharing

disable Qualcomm's cpu policy restore (conflicts with sibling sharing)

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
drivers/cpufreq/cpufreq.c: re-enable cpu policy restore

original bug FINALLY fixed by:
  cpufreq: Save user policy min/max instead of policy min/max during hotplug

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
cpufreq: intelliactive: initial coding and introduction!

intelliactive is based on Latest Google Interactive cpufreq governor from
Google.  The original Interactive provides smooth UI operations but suffers
slight battery drain due to its aggressive policies.  Intelliactive is an
improvement built on top of it.

It has the following enhancements added:
1. self-boost capability from input drivers (no need for PowerHAL assist)
2. two phase scheduling (idle/busy phases to prevent from jumping directly to
   max freq
3. Checks for offline cpus and short circuits some unnecessary checks to
   improve code execution paths
4. removed trace calls

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

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

Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
intelliactive: fix race condition when unregistering input handlers

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
intelliactive: add upstream patches

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
intelliactive: make touch boost interface generic

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
intelliactive: rework input register/unregister

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
cpufreq_intellimm: intelliminmax cpu governor initial baseline commit

intelliminmax (intellimm) governor is designed to work with the newer SOCs with fixed voltage rails (ie MSM8974+ SOCs).  It is designed to work within those
fixed voltage ranges in order to maximize battery performance while creating a
smooth UI operations.

Copyright 2014 Paul Reioux <aka faux123>

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

WIP: Intellimm: remove unused code and change tblmap algorithm

tblmap: add power-save frequencies for the first 5 entries

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

WIP: intellimm: more tweaks and table clean up

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

WIP: intellimm: more tweaks

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

WIP: intellimm: clean up derpy logic

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

WIP: intellimm: final clean up and algorithm tweaks

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

WIP: intellimm: finalizing part 2

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

WIP: intellimm: finalizing part 3

add back burst for smoother UI

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

intellimm: fix div by zero derp

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
ElementalX governor

Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
cpufreq_elementalx: minor adjustments

Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
cpufreq_elementalx: add counter for more gradual boosting

Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
cpufreq_elementalx: very slight boost

Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
a little extra boost when load is high

Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
up_threshold doesn't change, make it read_mostly

Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
make sure input boost stuff is disabled

Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
Rework and clean up

Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
slimbus: overclock root freq

Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
Makefile: remove non-working flag

Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
bif: remove erroring line

Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
PM: suspend: add timeout in suspend resume

Porting suspend timeout patch from stable6. On ICS qcom platform
we meet an issue (CR) that suspend did not exit and when
phone resume, then late resume work has no chance to excute, then
display could not turn on.

This commit include the follwoing changes from stable-dev6.

(CR): Targa not responsive to idle state - blackscreen

It need freeze the processes before enter suspend low power mode.
If the freeze processes get stuck, the suspend process will be stuck
and never enter suspend again.

Add a 60 seconds timeout in the suspend path, if freeze process get
stuck, it will force a kernel panic instead out of battery finally.

(CR): OMAP4:PM: Dump stack when timeout in suspend_prepare

Dump stack of suspend process when timeout during suspend_prepare()
The current panic thread log do not contains suspend process.
The stack log help to rootcause of hung in freeze process issue.

Change-Id: I232649e38f712ea83a2e77606c6c760cfb3c37b8
Signed-off-by: a2435c <a2435c@motorola.com>
Tested-by: Jira Key <JIRAKEY@motorola.com>
Reviewed-by: Check Patch <CHEKPACH@motorola.com>
Reviewed-by: Klocwork kwcheck <klocwork-kwcheck@sourceforge.mot.com>
Reviewed-by: Guo-Jian Chen <A21757@motorola.com>
Reviewed-by: Srinivas Sripathi <sripathi@motorola.com>
Reviewed-by: Lian-Wei Wang <a22439@motorola.com>
Reviewed-by: Peng Liu <a22543@motorola.com>
Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
Change-Id: I20a1bfc3d1cb6f9355fbcdd68f7b5225fd5e13ab
Reviewed-on: http://gerrit.pcs.mot.com/510622
Reviewed-by: David Ding <dding@motorola.com>
Reviewed-by: Lian-Wei Wang <lian-wei.wang@motorola.com>
Reviewed-by: Guo-Jian Chen <a21757@motorola.com>
Submit-Approved: Jira Key <JIRAKEY@motorola.com>
(cherry picked from commit 2f995d09b45bbcb094ee69290f5509580270987e)
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>