]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/cpufreq/intel_pstate.c
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)
commit6b17ddb2a50b9403c6948ec3e4ea2bd2d7064ff3
treee5901ec21bbf82569076a6acebe456713ed42e4f
parent735dc2498bd97b22e465dd4054d1b7edb9f63ed2
intel_pstate: Remove sample parameter in intel_pstate_calc_busy

Since commit d37e2b7644 ("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