aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cpufreq.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-02-28 20:47:57 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-02-28 20:47:57 +0100
commit075c3c483c86aaeadbfdb56ff0ffa67abe582eca (patch)
treee2e1500d3247ac20b61b9b9ab996e114c496698d /include/linux/cpufreq.h
parentMerge branch 'cpufreq/arm/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm (diff)
parentcpufreq: longhaul: Replace acpi_bus_get_device() (diff)
downloadlinux-dev-075c3c483c86aaeadbfdb56ff0ffa67abe582eca.tar.xz
linux-dev-075c3c483c86aaeadbfdb56ff0ffa67abe582eca.zip
Merge back cpufreq changes for v5.18.
Diffstat (limited to 'include/linux/cpufreq.h')
-rw-r--r--include/linux/cpufreq.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
index 3522a272b74d..35c7d6db4139 100644
--- a/include/linux/cpufreq.h
+++ b/include/linux/cpufreq.h
@@ -661,6 +661,11 @@ struct gov_attr_set {
/* sysfs ops for cpufreq governors */
extern const struct sysfs_ops governor_sysfs_ops;
+static inline struct gov_attr_set *to_gov_attr_set(struct kobject *kobj)
+{
+ return container_of(kobj, struct gov_attr_set, kobj);
+}
+
void gov_attr_set_init(struct gov_attr_set *attr_set, struct list_head *list_node);
void gov_attr_set_get(struct gov_attr_set *attr_set, struct list_head *list_node);
unsigned int gov_attr_set_put(struct gov_attr_set *attr_set, struct list_head *list_node);