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

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

Merge "devfreq: governor_cpubw_hwmon: Fix use of decay_rate"

parents 72554c9e b98be7eb
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -246,8 +246,9 @@ static void compute_bw(int mbps, unsigned long *freq, unsigned long *ab)
		new_bw /= 100;
	}

	*ab = roundup(mbps, bw_step);
	*freq = (mbps * 100) / io_percent;
	prev_ab = new_bw;
	*ab = roundup(new_bw, bw_step);
	*freq = (new_bw * 100) / io_percent;
}

#define TOO_SOON_US	(1 * USEC_PER_MSEC)
@@ -340,7 +341,6 @@ static int devfreq_cpubw_hwmon_get_freq(struct devfreq *df,

	mbps = measure_bw_and_set_irq();
	compute_bw(mbps, freq, df->data);
	prev_ab = *(unsigned long *) df->data;

	return 0;
}