Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99fdd93a authored by Mahesh Sivasubramanian's avatar Mahesh Sivasubramanian Committed by Rohit Vaswani
Browse files

soc: qcom: spm: Replace __get_cpu_ptr



__get_cpu_ptr is now deprecated. Switch to using this_cpu_ptr

Change-Id: If9a6c5d886ef4dd4f82915220c5c954588ead096
Signed-off-by: default avatarMahesh Sivasubramanian <msivasub@codeaurora.org>
parent de64ab2e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -388,7 +388,7 @@ EXPORT_SYMBOL(msm_spm_reinit);
 */
bool msm_spm_is_mode_avail(unsigned int mode)
{
	struct msm_spm_device *dev = &__get_cpu_var(msm_cpu_spm_device);
	struct msm_spm_device *dev = this_cpu_ptr(&msm_cpu_spm_device);
	int i;

	for (i = 0; i < dev->num_modes; i++) {
@@ -536,7 +536,7 @@ EXPORT_SYMBOL(msm_spm_avs_clear_irq);
 */
int msm_spm_set_low_power_mode(unsigned int mode, bool notify_rpm)
{
	struct msm_spm_device *dev = &__get_cpu_var(msm_cpu_spm_device);
	struct msm_spm_device *dev = this_cpu_ptr(&msm_cpu_spm_device);
	return msm_spm_dev_set_low_power_mode(dev, mode, notify_rpm);
}
EXPORT_SYMBOL(msm_spm_set_low_power_mode);