]> 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)
commit51878481e4916409ff2c75fd6f425b333e0cbfcb
tree8cb72c5039750da308ff05dab076a0c455e9bf15
parent8af3995d81a510b0c3f33d366045b52a710c6b6b
intel_pstate: Correct rounding in busy calculation

Changing to fixed point math throughout the busy calculation in
commit 0903aa90 (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: 0903aa90133f (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