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>
mach-msm: mpdecision: don't turn off cpu1 if freq > idle

This fixes cpu1 being turned off though it is still working
with a high frequency. The idle_freq can be modified through sysfs.

Change-Id: I4f74273072c19ebae37d595b47949784498731e8
Signed-off-by: showp1984 <showp1984@gmail.com>
mach-msm: mpdecision: fixup: move idle block to mpdecision()

This belongs in mp_decision() because this influences the decision
mpdecision is about to make.

Change-Id: I4e8030976d51bae157593b219f8166bff38ca0e1
Signed-off-by: showp1984 <showp1984@gmail.com>
mach-msm: mpdecision: don't turn on cpu1 if cpu0 freq is below idle_freq
If the clock of cpu0 is below the set idle_freq don't enable cpu1 and
disregard the runqueue value.

Change-Id: If907a52b71928cd47f3af21fad75ae83b9a880cb
Signed-off-by: showp1984 <showp1984@gmail.com>
msm_mpdecision: fix check for khz/mhz value (idle_freq sysfs)

Change-Id: I3e70901d85c3d96117c1d5e7b1ef6ffaf158f589
Signed-off-by: showp1984 <showp1984@gmail.com>
msm_mpdecision: add debug output

Change-Id: I1fcdc28461af6085e7d61b95407eaf7c1b329b22
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
msm_mpdecision: make mpdecision() core independent

Change-Id: I64e2f414e034c35fd69b343bb03034abfff70d22
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
msm_mpdecision: make msm_mpdec_work_thread() core independent

Change-Id: I07dfed7064ac834de60e23029c7ea8a3cf719aae
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
msm_mpdecision: fix get_slowest_cpu()

Change-Id: If89681f806cb3b47af7e8df1ec9f2d14b4c5562f
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
msm_mpdecision: make debug output more compact & informative

Change-Id: Ic585d16a63778a2fb5025e479b38b40366a14d41
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
msm_mpdecision: decrease startup delay

Change-Id: Ib77841ee296f4143fb00e5716b3bb81ec348150d
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
msm_mpdecision: decrease decision delay

Change-Id: I7e7ffecb0886815a646667aac542b9d807a94955
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
msm_mpdecision: update core data on first call

Change-Id: I21a17c780fb5d2bf69402383cbb14b414ffa6c54
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
msm_mpdecision: don't let msm_mpdec_work_thread() run if we are still booting

Change-Id: I6a24e9fffd1d2ba687fd44a580134f92dcf16463
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
msm_mpdecision: make earlysuspend/lateresume core independent

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