]> git.baikalelectronics.ru Git - kernel.git/commit
intel_pstate: Correct rounding in busy calculation
authorDirk Brandewie <dirk.j.brandewie@intel.com>
Thu, 29 May 2014 16:32:23 +0000 (09:32 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 2 Jun 2014 10:44:59 +0000 (12:44 +0200)
commit6c78f220a880000a9760e16e2040e688bb94bc61
tree8cb72c5039750da308ff05dab076a0c455e9bf15
parent13fba29fb2e877dbe10a70e3fb764791795bfd25
intel_pstate: Correct rounding in busy calculation

Changing to fixed point math throughout the busy calculation in
commit 7d628be0 (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: 7d628be0bb84 (intel_pstate: Change busy calculation to use fixed point math.)
Reported-by: Doug Smythies <dsmythies@telus.net>
Cc: 3.14+ <stable@vger.kernel.org> # 3.14+
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c