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

Commit b27ecead authored by Maulik Shah's avatar Maulik Shah Committed by Gerrit - the friendly Code Review server
Browse files

drivers: cpuidle: lpm-levels: Correctly check for list empty



Correctly check for list empty condition to get least cluster
latency.

Change-Id: I56f11e4a80c24d337ee231f6d0bc461a90f1a2ea
Signed-off-by: default avatarMaulik Shah <mkshah@codeaurora.org>
parent e7cc30f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -156,7 +156,7 @@ static uint32_t least_cluster_latency(struct lpm_cluster *cluster,
	uint32_t latency = 0;
	int i;

	if (!cluster->list.next) {
	if (list_empty(&cluster->list)) {
		for (i = 0; i < cluster->nlevels; i++) {
			level = &cluster->levels[i];
			pwr_params = &level->pwr;