diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-04-09 01:25:58 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-04-09 01:25:58 +0200 |
commit | 22590efb98ae0c84f798a9938c0b6d97bc89adf5 (patch) | |
tree | 0ee9817ec59901350d6deef093d613e427284619 /.gitignore | |
parent | cpufreq: exynos: Use generic platdev driver (diff) | |
download | linux-22590efb98ae0c84f798a9938c0b6d97bc89adf5.tar.xz linux-22590efb98ae0c84f798a9938c0b6d97bc89adf5.zip |
intel_pstate: Avoid pointless FRAC_BITS shifts under div_fp()
There are multiple places in intel_pstate where int_tofp() is applied
to both arguments of div_fp(), but this is pointless, because int_tofp()
simply shifts its argument to the left by FRAC_BITS which mathematically
is equivalent to multuplication by 2^FRAC_BITS, so if this is done
to both arguments of a division, the extra factors will cancel each
other during that operation anyway.
Drop the pointless int_tofp() applied to div_fp() arguments throughout
the driver.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions