msm: kgsl: Calculate busy interval considering GPU freq as float

GPU freq could be non-integral value and treating it as an integer
to calculate GPU busy insterval leads to higher busy interval
and more often we see negative idle stats. This change caculates
busy interval by treating gpu freq to the correct precision.

Change-Id: Ic54130803d7a0436b4ba31b09915eb7165d16590
CRs-fixed: 454972
Signed-off-by: Vinay Roy <vroy@codeaurora.org>
Update copyright to The Linux Foundation

Change-Id: Ia5765b9503a4e20121ed6cd3c9d333990b5b8cfe
Signed-off-by: Duy Truong <dtruong@codeaurora.org>
Merge "Update copyright to The Linux Foundation"
Revert "msm: 8625: Enable ticket spinlocks"

This reverts commit 3a45399410f9976569aa1631cad69757966160ac.

Change-Id: Ia26ccac234125eb8cb3ec7978837c87b75177698
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
Merge "msm: kgsl: Calculate busy interval considering GPU freq as float"
Merge "Revert "msm: 8625: Enable ticket spinlocks""
regulator: onsemi: Register for syscore ops

Register the shutdown hook in syscore_ops to make sure that
the buck goes down with the default voltage. This is required
in the case of a restart where the input voltage to the buck
is not turned off. It is not possible to do this operation in
the restart handler (msm_pm_restart) as preemption is disabled
at that point.

Also make sure that the voltage cannot be set after the
shutdown hook is executed.

CRs-Fixed: 458339
Change-Id: I01f0338dfc9ad1c6c855f14b7684fae355c72257
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
ARM: Fix deadlock scenario with smp_send_stop()

If one process calls sys_reboot and that process then stops other
CPUs while those CPUs are within a spin_lock() region we can
potentially encounter a deadlock scenario like below.

CPU 0                   CPU 1
-----                   -----
                        spin_lock(my_lock)
smp_send_stop()
 send_IPI               handle_IPI()
                         disable_preemption/irqs
                          while(1);
 <PREEMPT>
spin_lock(my_lock) <--- Waits forever

We shouldn't attempt to run any other tasks after we send a stop
IPI to a CPU so disable preemption so that this task runs to
completion.

Change-Id: I528af0b4448433bd9d6ca12d6a0e2c422a55d4be
CRs-Fixed: 396169
Reported-by: Sundarajan Srinivasan <sundaraj@codeaurora.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Merge "regulator: onsemi: Register for syscore ops"
Merge "ARM: Fix deadlock scenario with smp_send_stop()"