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

Commit e267e040 authored by Nitin Bandwar's avatar Nitin Bandwar Committed by Mahesh Sivasubramanian
Browse files

drivers: cpuidle: lpm-levels: Ignore sleep bias for isolated cpus



For isolated cpus, do not consider sleep bias. Sleep bias is used to
prevent active cores from entering low power modes with longer
latencies. Isolated CPUs are not considered for scheduling and as such
should enter deepest low power mode.

Change-Id: Ic8c20ca761c6f09dc86317fc5df872a37eb86aa9
Signed-off-by: default avatarNitin Bandwar <nbandwar@codeaurora.org>
Signed-off-by: default avatarMahesh Sivasubramanian <msivasub@codeaurora.org>
parent aa173002
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
 * Copyright (C) 2006-2007 Adam Belay <abelay@novell.com>
 * Copyright (C) 2009 Intel Corporation
 *
@@ -619,7 +619,7 @@ static int cpu_power_select(struct cpuidle_device *dev,

	next_event_us = (uint32_t)(ktime_to_us(get_next_event_time(dev->cpu)));

	if (is_cpu_biased(dev->cpu))
	if (is_cpu_biased(dev->cpu) && (!cpu_isolated(dev->cpu)))
		goto done_select;

	for (i = 0; i < cpu->nlevels; i++) {