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>
mach-msm: mpdecision: allow mpdecision to be disabled (sysfs)

This allows disabling/enabling of mpdecision over sysfs.

Change-Id: I256166b1eecc69bb9838439ba5b7d440e76f3a56
Signed-off-by: showp1984 <showp1984@gmail.com>
mach-msm: mpdecision: increase start delay for Sense

Change-Id: I5b3b61d9c0d00539926de56dfe1a521ed65d57f7
Signed-off-by: showp1984 <showp1984@gmail.com>
mach-msm: mpdecision: increase up threshold for Sense

Change-Id: Iba36cd16624ee926167f6660e487e094b574c3d6
Signed-off-by: showp1984 <showp1984@gmail.com>
mach-msm: mpdecision: sysfs: check if cpu is offline before hotplugging it

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