cpufreq: cpu-boost: Use hotplug thread infrastructure

Before this patch, thread migration ran in uninterruptible threads.
Use the relatively new hotplug thread infrastructure with parked
threads to reduce cpu load (x4).

Change-Id: I4fa1f3a6d6b2b68ecb6e751678584f24abd85992
cpufreq: ondemand: Use hotplug thread infrastructure

The dbs_sync threads caused considerable load, even when ondemand
wasn't even active. Use the hotplug thread infrastructure to park
the threads.

Change-Id: I8e2c780e3f00b73edc0337e01c226386146e0fd4
msm: kgsl: Fix the NULL context submission size

When submitting commands with a NULL context the size may not be
calculated properly. Fix this calculation.

Change-Id: Idcc37772349673da8a9b9d5127f88946ced8fff6
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
msm: mdss: call suspend and resume panel events during runtime triggers

Send a panel suspend/resume event to all the MDSS devices to ensure
proper handling of regulators and clocks during the suspend/resume
sequence.

Change-Id: I820f5e4113f599ba53d4fa4726e406f74872f95f
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
ARM: dts: Disable RPM notifications for L2 GDHS collapse on Krait targets

Entering vdd minimization is unsupported during L2 GDHS collapse.
Prevent this from happening by not notifying the RPM during the L2
GDHS SPM sequence.

CRs-Fixed: 609356
Change-Id: Iefcb3597df5af104f823fdfb1ad1879f5d1d057e
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
msm: lpm_levels: Perform system_unprepare only system low power mode

system_unprepare() needs to execute operations related to system
unprepare only when the CPU subsystem was scheduled for a system low
power mode by the last core that went down. On the last core down, its
possible that residency conditions for system low power mode weren't met
and the system was never programmed to enter a low power mode. In these
scenarios, the system_unprepare() needn't execute any of the unprepare
functionalities.

CRs-fixed: 596831
Change-Id: I36b00f254354920775ba8e797bb08932e2495b24
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
Revert "stop_machine: Mark per cpu stopper enabled early"

This reverts commit e2d1938710a26e34fcfaee8a68278ec445fbf3db.
Revert "kthread: Prevent unpark race which puts threads on the wrong cpu"

This reverts commit ceb1637b74ab234985b554cec6ada8d4136c8181.
Revert "smpboot: Allow selfparking per cpu threads"

This reverts commit 91d916d2e94728be3ea839d277be406cbeb57b97.
Revert "hotplug: Fix UP bug in smpboot hotplug code"

This reverts commit 2481e6e8a28124f660aafe790a57bce4d2201689.
Revert "smpboot, idle: Fix comment mismatch over idle_threads_init()"

This reverts commit da571d985712015ea13eb7a79e3b981fe28561b4.
Revert "smpboot, idle: Optimize calls to smp_processor_id() in idle_threads_init()"

This reverts commit 760623ccf6e7f6a449b47d436623fa741d2f04e2.
Revert "smpboot: Provide infrastructure for percpu hotplug threads"

This reverts commit 3b71fd08a685659a4f33f88fd22657eaed970508.
Revert "smp, idle: Allocate idle thread for each possible cpu during boot"

This reverts commit 15841c1840a2677445be3476d3a1813d5f947c59.
Revert "smp: patches from mainline 3.5 to hopefully help with hotplug efficiency"

This reverts commit 054aa8691b633da6ac03d0f02dbc586741e96616.