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

Commit ff6af807 authored by Rohit Gupta's avatar Rohit Gupta
Browse files

cpufreq: interactive: Allow 1 ms error in above_hispeed_delay comparisons



Allow for an error of 1 ms while taking into account
above_hispeed_delay for a frequency

Change-Id: I744e44387152e4efb5978df4f2b9533bf79d4582
Signed-off-by: default avatarRohit Gupta <rohgup@codeaurora.org>
parent 7cb5bf37
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -231,6 +231,8 @@ static unsigned int freq_to_above_hispeed_delay(unsigned int freq)
		;

	ret = above_hispeed_delay[i];
	ret = (ret > (1 * USEC_PER_MSEC)) ? (ret - (1 * USEC_PER_MSEC)) : ret;

	spin_unlock_irqrestore(&above_hispeed_delay_lock, flags);
	return ret;
}