diff options
author | Dirk Brandewie <dirk.j.brandewie@intel.com> | 2014-05-29 09:32:23 -0700 |
---|---|---|
committer | Show Liu <show.liu@linaro.org> | 2014-06-18 12:05:30 +0800 |
commit | 9b115000e7deeb3ce53e48b3ca4844904063cfa1 (patch) | |
tree | b260ac6af1871e5a1e25606508ba331fe4c3cc53 /drivers/target/target_core_fabric_lib.c | |
parent | b42d1cf76e6f459e65ba668b79520d4368e32c85 (diff) |
intel_pstate: Correct rounding in busy calculation
commit f0fe3cd7e12d8290c82284b5c8aee723cbd0371a upstream.
Changing to fixed point math throughout the busy calculation in
commit e66c1768 (Change busy calculation to use fixed point
math.) Introduced some inaccuracies by rounding the busy value at two
points in the calculation. This change removes roundings and moves
the rounding to the output of the PID where the calculations are
complete and the value returned as an integer.
Fixes: e66c17683746 (intel_pstate: Change busy calculation to use fixed point math.)
Reported-by: Doug Smythies <dsmythies@telus.net>
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/target/target_core_fabric_lib.c')
0 files changed, 0 insertions, 0 deletions