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

Commit c69f942c authored by Maulik Shah's avatar Maulik Shah Committed by Lina Iyer
Browse files

lpm-levels: Select lpm for isolated cpu when sleep is disabled



Isolated cpu can enter to wfi if sleep is disabled and stay in
wfi until it wakes up and selects deeper lpm again.

Select cpu lpm for isolated cpu when sleep is disabled.

Change-Id: Id936ebaac0118d48d07e74aff7569f93b8b98b8b
Signed-off-by: default avatarMaulik Shah <mkshah@codeaurora.org>
Signed-off-by: default avatarMahesh Sivasubramanian <msivasub@codeaurora.org>
parent 377e49df
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only

/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
 * Copyright (C) 2006-2007 Adam Belay <abelay@novell.com>
 * Copyright (C) 2009 Intel Corporation
 */
@@ -578,7 +578,7 @@ static inline bool is_cpu_biased(int cpu)

static inline bool lpm_disallowed(s64 sleep_us, int cpu)
{
	if (sleep_disabled || is_cpu_biased(cpu))
	if ((sleep_disabled && !cpu_isolated(cpu)) || is_cpu_biased(cpu))
		return true;

	if (sleep_us < 0)