mach-msm: Add msm_mpdecision Kconfig & Makefile hooks
Also rename qcom's mpdecision to stay in place and be used if CONFIG_MSM_MPDEC is not set

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

Conflicts:
	arch/arm/mach-msm/Makefile

Change-Id: Iffe7f9860c87a5cdbb88aaf63f68e5daf9e77152
mach-msm: Add msm_mpdecision
This currently only does the following thing:
Screen on -> CPU1 online
Screen off -> CPU1 offline

More to come.

Change-Id: I7a6fd8f82eb0539b10c4ffdd388dcd30bd080e79
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
mach-msm: mpdecision: small cleanup

Change-Id: I3adf456ff035251181713539a9ee5ee1b961f180
Signed-off-by: showp1984 <showp1984@gmail.com>
mach-msm: mpdecision: add load based decision making

This now works like the mpdecision binary from QCOM.
CPU hotplugging/unplugging based on system load.

A sysfs interface will be built in with a later commit.

Signed-off-by: showp1984 <showp1984@gmail.com>

Conflicts:
	arch/arm/mach-msm/msm_rq_stats.c

Change-Id: If94332ef28e4db844a69c480a1cdbea2f2edd0fa
mach-msm: mpdecision: restructure locks, add delay

The new delay allows the CPU to come up before any other action is taken.
This prevents fast plugging and also ensures the CPU hotplug process
is really done, before trying to unplug it again (or plug it).

The new locks are more efficient, and only used if necessary.

Change-Id: I0d8ae8a19f16c90cf776f0e701dfe8007099c018
Signed-off-by: showp1984 <showp1984@gmail.com>
mach-msm: mpdecision: pause if CPU is unplugged outside of mpdecision

This fixes cpu wars if something else tries to control the cpus.
default delay: 10000ms

Change-Id: If61ce3c1317ae362c323e1b0b8bfc5bfff47defc
Signed-off-by: showp1984 <showp1984@gmail.com>
mach-msm: mpdecision: change early_suspend_level to blank_screen

Change-Id: I1dbb39575981f6b901b351a77e5319adeda29216
Signed-off-by: showp1984 <showp1984@gmail.com>
mach-msm: mpdecision: don't start immediately

Change-Id: I49c1b1f35005ffa19916d0aacd3163f1d29eddde
Signed-off-by: showp1984 <showp1984@gmail.com>
mach-msm: mpdecision: show cpumask after up/down

Change-Id: Ib1b77347f54323a15c22b9af688148f0f57fabce
Signed-off-by: showp1984 <showp1984@gmail.com>
mach-msm: mpdecision: always set the suspend var

Change-Id: Id10a033a1ad8417b14a86cbfd7189ab04333f474
Signed-off-by: showp1984 <showp1984@gmail.com>
mach-msm: mpdecision: remove up/down delay, our default delay is large enough

Change-Id: I869e95bd9c37fddb0d348789f5f665f17fbe38f8
Signed-off-by: showp1984 <showp1984@gmail.com>
mach-msm: mpdecision: add email to (c)

Change-Id: Ieffa72c3ecf0846f19d29211469530d9ec4c5254
Signed-off-by: showp1984 <showp1984@gmail.com>
mach-msm: mpdecision: fix foreign hotplug/unplug detection

Signed-off-by: showp1984 <showp1984@gmail.com>

Conflicts:

	arch/arm/mach-msm/msm_mpdecision.c

Change-Id: I69defaccefd7e142beaf9b77ca5b6950ad7534e0
mach-msm: mpdecision: show how long the cpu was online

Change-Id: I2ee8a96baef29d9e72f952a155ed008ce226bd5e
Signed-off-by: showp1984 <showp1984@gmail.com>
mach-msm: mpdecision: rename msm_mpdec_suspend to msm_mpdec_cpudata

Since this is being used for more than suspend stuff the old name
just isn't accurate anymore.

Change-Id: I119159b5124aafbd23dfcbf88ab478d2d1f42e13
Signed-off-by: showp1984 <showp1984@gmail.com>
mach-msm: mpdecision: add sysfs interface

Change-Id: Ic79683cb23ee49bddda1a75f70dcb7951f6bb943
Signed-off-by: showp1984 <showp1984@gmail.com>
mach-msm: mpdecision: remove debug output

Change-Id: I46aaa33a52f6ec143e2b769bdffaea0cc383614e
Signed-off-by: showp1984 <showp1984@gmail.com>
mach-msm: mpdecision: increase startdelay for sense

Surprise! Sense needs a lot longer to boot up than aosp...

Change-Id: If398a2c5f9252265a22e56eea54f9e71580bc377
Signed-off-by: showp1984 <showp1984@gmail.com>
mach-msm: mpdecision: adjust thresholds for sense

Sense is just too hungry...

Change-Id: Ie741da5f8a13719c3a1908f77ab91878a1e0ea6b
Signed-off-by: showp1984 <showp1984@gmail.com>
mach-msm: mpdecision: fix foreign cpu control detection

Change-Id: Iad34d3ad7e49fb7a6775ebfe4a1773e25f74dcf8
Signed-off-by: showp1984 <showp1984@gmail.com>