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

Commit b26d5d9a authored by Raghavendra Kakarla's avatar Raghavendra Kakarla
Browse files

drivers: lpm-levels: Use cpu_do_idle for shallower LPM entry



dsb should be invoked before wfi instruction without which
core can get stuck or do not respond to IPIs. Use cpu_do_idle
that invokes both dsb and wfi instructions for shallower mode
entry.

Change-Id: I2e9d2317048781590a626a0b3d93f23bbf9eb496
Signed-off-by: default avatarRaghavendra Kakarla <rkakarla@codeaurora.org>
parent b3a2604d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
 * Copyright (C) 2006-2007 Adam Belay <abelay@novell.com>
 * Copyright (C) 2009 Intel Corporation
 *
@@ -1314,7 +1314,7 @@ static bool psci_enter_sleep(struct lpm_cpu *cpu, int idx, bool from_idle)

	if (!idx) {
		stop_critical_timings();
		wfi();
		cpu_do_idle();
		start_critical_timings();
		return 1;
	}