msm_mpdecision: various fixes and tweaks

- fix get_slowest_cpu_rate(): don't cut off rate to int
- fix get_slowest_cpu_rate(): don't use values from an offline cpu
- fix get_slowest_cpu(): don't return cpu0.
- tweak hotplug thresholds

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm_mpdecision: disable debug

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm_mpdecision: remove early_suspend, add fb callback

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm_mpdecision: when returning from sleep, start immediately

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm_mpdecision: we can't turn off cpu0

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm_mpdecision: turn on cpu1 early

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm_mpdecision: on resume pull up cpu1

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm_mpdecision: tweak hotplug values

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
mpdecision: don't use sleep, cancel/resume wq instead

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
mpdecision: checking every 100ms is enough

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
mpdecision: update copyright

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Revert "mpdecision: don't use sleep, cancel/resume wq instead"

This reverts commit 4b6f8555481d2c5049eb7cb496283749ed7cd7ca.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm_mpdecision: add stats & expose to sysfs

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm_mpdecision: fix sleep, don't use pause

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Revert "msm_mpdecision: remove early_suspend, add fb callback"

This reverts commit 56fa75bf888aaf21ce82b84cafa5b10e077e3d5b.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm_mpdecision: fix spacing across the whole file
In the past year this evolved to a battlefield of tabs, spaces and different sizes of them. Fix that.

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm_mpdecision: stats: if cpu is online, add current ontime to stats

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm_mpdecision: add input event boost [read more]

This adds an input event boost to mpdecision.
It will basically boost the min freq of all cpus to predefined values if an
input event is detected.
Devices that qualify as boosters must fullfill one of these conditions:
- contain touch in their name
- contain keyboard in their name
This also boosts cpus independently from each other. Meaning:
If a cpu is hotplugged after the boost of another cpu was initiated the next
boost pulse will boost that cpu too.

Sysfs interface underway.

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm_mpdecision: add sysfs interface for input event boost

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
msm_mpdecision: input event boost: fix not resetting boost if cpu was unplugged before

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