aboutsummaryrefslogtreecommitdiffstats
path: root/CREDITS
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-10-15 13:53:25 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-10-18 09:34:13 +0200
commitf1c8e410cdac5df42a7806e49efde2859a10fecd (patch)
treed2179335a5d344954c32ebfff457a39cb9ff12cb /CREDITS
parentcpuidle: menu: Drop redundant comparison (diff)
downloadlinux-dev-f1c8e410cdac5df42a7806e49efde2859a10fecd.tar.xz
linux-dev-f1c8e410cdac5df42a7806e49efde2859a10fecd.zip
cpuidle: menu: Avoid computations when result will be discarded
If the minimum interval taken into account in the average computation loop in get_typical_interval() is less than the expected idle duration determined so far, the resultant average cannot be greater than that value as well and the entire return result of the function is going to be discarded anyway going forward. In that case, it is a waste of time to carry out the remaining computations in get_typical_interval(), so avoid that by returning early if the minimum interval is not below the expected idle duration. No intentional changes of behavior. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions