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

Commit 068b5e30 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "devfreq: Do not round up bandwidth on BWMON4 devices"

parents a757f308 e3048730
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -588,15 +588,16 @@ unsigned long get_zone_count(struct bwmon *m, unsigned int zone,
		WARN(1, "Invalid\n");
		return 0;
	case MON2:
		count = readl_relaxed(MON2_ZONE_MAX(m, zone)) + 1;
		count = readl_relaxed(MON2_ZONE_MAX(m, zone));
		break;
	case MON3:
		count = readl_relaxed(MON3_ZONE_MAX(m, zone));
		if (count)
			count++;
		break;
	}

	if (count)
		count++;

	return count;
}