cpufreq: add new routine cpufreq_verify_within_cpu_limits()
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 2 Oct 2013 08:43:19 +0000 (14:13 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 15 Oct 2013 22:50:23 +0000 (00:50 +0200)
commitbe49e3465f222b4b796be8a21d14afbfd8f5d20f
treee1ef5d9cb453bb3c7f073a4d209d2b63d980aec3
parent0b981e70748861a3e10ea2e2a689bdcee3e15085
cpufreq: add new routine cpufreq_verify_within_cpu_limits()

Most of the users of cpufreq_verify_within_limits() calls it for
limiting with min/max from policy->cpuinfo. We can make that code
simple by introducing another routine which will do this for them
automatically.

This patch adds another routine cpufreq_verify_within_cpu_limits()
and updates others to use it.

Signed-off-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/cpufreq-nforce2.c
drivers/cpufreq/davinci-cpufreq.c
drivers/cpufreq/freq_table.c
drivers/cpufreq/integrator-cpufreq.c
drivers/cpufreq/intel_pstate.c
drivers/cpufreq/longrun.c
drivers/cpufreq/pcc-cpufreq.c
drivers/cpufreq/sh-cpufreq.c
drivers/cpufreq/unicore2-cpufreq.c
include/linux/cpufreq.h