cpufreq: intel_pstate: Initialize pid_params statically
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Mar 2017 22:05:44 +0000 (00:05 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 Mar 2017 21:12:08 +0000 (23:12 +0200)
commit5c43905369bb85fd518363e743b68e2407d83f7c
tree9b2794759dbd2e01c3ba01e8f996fd2279195255
parent6404367862bb25730e373cb9d443757b76f6abcc
cpufreq: intel_pstate: Initialize pid_params statically

Notice that both the existing struct cpu_defaults instances in which
PID parameters are actually initialized use the same values of those
parameters, so it is not really necessary to copy them over to
pid_params dynamically.

Instead, initialize pid_params statically with those values and
drop the unused pid_policy member from struct cpu_defaults along
with copy_pid_params() used for initializing it.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c