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

Commit 70489666 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "PM / devfreq: memlat: Don't ignore extremely latency sensitive workloads"

parents e951ada3 6f67be81
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -244,7 +244,11 @@ static int devfreq_memlat_get_freq(struct devfreq *df,
					hw->core_stats[i].mem_count,
					hw->core_stats[i].freq, ratio);

		if (ratio && ratio <= node->ratio_ceil
		if (!hw->core_stats[i].inst_count
		    || !hw->core_stats[i].freq)
			continue;

		if (ratio <= node->ratio_ceil
		    && hw->core_stats[i].freq > max_freq) {
			lat_dev = i;
			max_freq = hw->core_stats[i].freq;