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

Commit d0e87756 authored by Subhash Jadavani's avatar Subhash Jadavani
Browse files

mmc: core: fix downdifferential for clock scaling



"downdifferential" parameter of devfreq's simple ondemand governor supposed
to report expected difference between upthreshold and downthreshold value.
In other words, downdifferential = upthreshold - downthreshold. But
currently downdifferential is set to same as downthreshold, this change
fixes this issue.

Change-Id: Ic2e762d192f1fed8f94d4d2579d6a4b5d4c2c8b5
Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
parent c57b8e5f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -680,7 +680,7 @@ int mmc_init_clk_scaling(struct mmc_host *host)
	host->clk_scaling.ondemand_gov_data.upthreshold =
		host->clk_scaling.upthreshold;
	host->clk_scaling.ondemand_gov_data.downdifferential =
		host->clk_scaling.downthreshold;
		host->clk_scaling.upthreshold - host->clk_scaling.downthreshold;

	err = mmc_devfreq_create_freq_table(host);
	if (err) {