]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cpufreq: Introduce cpufreq_driver_test_flags()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 Oct 2020 15:35:46 +0000 (17:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:51:57 +0000 (11:51 +0100)
commitbc1fdacf9e838e53987b78e7db7e46b1fbeea97e
tree02dae739217c0831112b684f9a8019c3406c7cab
parent48a0855e6c17d753c8d5a0c2605bdd77eef5d375
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>
drivers/cpufreq/cpufreq.c
include/linux/cpufreq.h