cpufreq / intel_pstate: Optimize intel_pstate_set_policy
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tue, 9 Apr 2013 22:38:18 +0000 (22:38 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Apr 2013 11:42:45 +0000 (13:42 +0200)
commitd1b6848590af407c5d2354929ac683052d631830
tree482ffe294513d0c6856a419f1f7cba786ea79c34
parent49ded525d4486dc97fc965858bf3ddf245463670
cpufreq / intel_pstate: Optimize intel_pstate_set_policy

This function is called quite often from other subsystems.
Removed unused call to intel_pstate_get_min_max().
Also when "policy->policy == CPUFREQ_POLICY_PERFORMANCE", then
no need to do calculations as the limits will be forced anyway.
Also corrected filename in the header.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c