cpuidle: tegra: Explicitly call pm_system_wakeup

During SC7 resume sometime wakekey interrupt is not generated even
if wake key is pressed.
So explicitly call pm_system_wakeup() which causes the system
to resume from SC7.

Bug 4449600

Change-Id: I8582ef22fb456f7b26b13515bce5e4874191b713
Signed-off-by: Preetham Chandru Ramchandra <pchandru@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3079822
Reviewed-by: Bhavesh Parekh <bparekh@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bhavesh Parekh <bparekh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Preetham Chandru Ramchandra
2024-01-21 12:03:16 +00:00
committed by mobile promotions
parent 1d0f4c4ffc
commit 4008be04b4

View File

@@ -105,6 +105,7 @@ static int tegra_auto_enter_s2idle_state(struct cpuidle_device *dev,
pr_debug("%s: after HVC: GUEST_PAUSE_CMD, %d\n", __func__, boot_cpu_id); pr_debug("%s: after HVC: GUEST_PAUSE_CMD, %d\n", __func__, boot_cpu_id);
s2idle_sc7_state = CPUIDLE_TEGRA_AUTO_SC7_RESUME_START; s2idle_sc7_state = CPUIDLE_TEGRA_AUTO_SC7_RESUME_START;
cpumask_clear(&cpumask); cpumask_clear(&cpumask);
pm_system_wakeup();
} else { } else {
cpumask_test_and_set_cpu(cpu_id, &cpumask); cpumask_test_and_set_cpu(cpu_id, &cpumask);