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

Commit 4434c759 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cpuidle: lpm-levels: Fix WFI mode to work on Non-PSCI targets"

parents 017e8c08 2d273f41
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -874,13 +874,17 @@ static int lpm_cpuidle_enter(struct cpuidle_device *dev,
	if (need_resched() || (idx < 0))
		goto exit;

	if (idx > 0 && !use_psci) {
		update_debug_pc_event(CPU_ENTER, idx, 0xdeaffeed, 0xdeaffeed,
					true);
	if (!use_psci) {
		if (idx > 0)
			update_debug_pc_event(CPU_ENTER, idx, 0xdeaffeed,
							0xdeaffeed, true);

		success = msm_cpu_pm_enter_sleep(cluster->cpu->levels[idx].mode,
				true);
		update_debug_pc_event(CPU_EXIT, idx, success, 0xdeaffeed,
					true);

		if (idx > 0)
			update_debug_pc_event(CPU_EXIT, idx, success,
							0xdeaffeed, true);
	} else {
		success = psci_enter_sleep(cluster, idx, true);
	}