]> git.baikalelectronics.ru Git - kernel.git/commit
intel_pstate: Remove sample parameter in intel_pstate_calc_busy
authorStratos Karafotis <stratosk@semaphore.gr>
Tue, 29 Apr 2014 17:53:49 +0000 (20:53 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 6 May 2014 22:29:51 +0000 (00:29 +0200)
commit829a25aa1c106e33f02841e5e2985fa8b01f494b
treee5901ec21bbf82569076a6acebe456713ed42e4f
parentb258fc7c1b12ad9dc2d8c54bd7fd44afbb579d55
intel_pstate: Remove sample parameter in intel_pstate_calc_busy

Since commit 49a030ceef ("intel_pstate: remove unneeded sample buffers")
we use only one sample. So, there is no need to pass the sample
pointer to intel_pstate_calc_busy. Instead, get the pointer from
cpudata. Also, remove the unused SAMPLE_COUNT macro.

While at it, reformat the first line in this function.

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c