diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-10-23 17:35:46 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-11-05 11:51:57 +0100 |
commit | bc1fdacf9e838e53987b78e7db7e46b1fbeea97e (patch) | |
tree | 02dae739217c0831112b684f9a8019c3406c7cab /include/linux | |
parent | 48a0855e6c17d753c8d5a0c2605bdd77eef5d375 (diff) | |
download | linux-stable-bc1fdacf9e838e53987b78e7db7e46b1fbeea97e.tar.gz linux-stable-bc1fdacf9e838e53987b78e7db7e46b1fbeea97e.tar.bz2 linux-stable-bc1fdacf9e838e53987b78e7db7e46b1fbeea97e.zip |
cpufreq: Introduce cpufreq_driver_test_flags()
commit a62f68f5ca53ab61cba2f0a410d0add7a6d54a52 upstream.
Add a helper function to test the flags of the cpufreq driver in use
againt a given flags mask.
In particular, this will be needed to test the
CPUFREQ_NEED_UPDATE_LIMITS cpufreq driver flag in the schedutil
governor.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/cpufreq.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index a559e3d7c63e..2e900fd461f2 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -428,6 +428,7 @@ struct cpufreq_driver { int cpufreq_register_driver(struct cpufreq_driver *driver_data); int cpufreq_unregister_driver(struct cpufreq_driver *driver_data); +bool cpufreq_driver_test_flags(u16 flags); const char *cpufreq_get_current_driver(void); void *cpufreq_get_driver_data(void); |