diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-03-19 12:48:30 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-03-19 12:48:30 +0100 |
commit | 9832235f3f880ab2e58141885e3b5ed3b158c0fb (patch) | |
tree | 03234656eee774bb7467b2ba15c6877689b324b8 /security | |
parent | cpufreq: arm_big_little: set 'physical_cluster' for each CPU (diff) | |
download | linux-9832235f3f880ab2e58141885e3b5ed3b158c0fb.tar.xz linux-9832235f3f880ab2e58141885e3b5ed3b158c0fb.zip |
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>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions