Home
last modified time | relevance | path

Searched hist:"9832235 f3f880ab2e58141885e3b5ed3b158c0fb" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/cpufreq/
H A Dcpufreq.cdiff 9832235f3f880ab2e58141885e3b5ed3b158c0fb Wed Mar 19 06:48:30 CDT 2014 Rafael J. Wysocki <rafael.j.wysocki@intel.com> cpufreq: Do not allow ->setpolicy drivers to provide ->target

cpufreq drivers that provide the ->setpolicy() callback are supposed
to have integrated governors, so they don't need to set ->target()
or ->target_index() and may confuse the core if any of these callbacks
is present.

For this reason, add a check preventing ->setpolicy cpufreq drivers
from registering if they have non-NULL ->target or ->target_index.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>