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)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 29 Oct 2020 13:07:30 +0000 (14:07 +0100)
commita62f68f5ca53ab61cba2f0a410d0add7a6d54a52
tree5e88c9c645162205c9ad9f1e6d7909141178f3fe
parent00d4394792418f8fe968f0cb22557053c6310010
cpufreq: Introduce cpufreq_driver_test_flags()

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>
drivers/cpufreq/cpufreq.c
include/linux/cpufreq.h