Skip to content

Commit

Permalink
cpufreq: interactive: Allow 1 ms error in above_hispeed_delay compari…
Browse files Browse the repository at this point in the history
…sons

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

Change-Id: I744e44387152e4efb5978df4f2b9533bf79d4582
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
  • Loading branch information
Rohit Gupta authored and hyperb1iss committed Jan 14, 2014
1 parent 3722f8e commit 1465a67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/cpufreq/cpufreq_interactive.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1465a67

Please sign in to comment.