提交 9782adeb 编写于 作者: K Kimberly Brown 提交者: Greg Kroah-Hartman

cpufreq: schedutil: Replace default_attrs field with groups

The kobj_type default_attrs field is being replaced by the
default_groups field. Replace sugov_tunables_ktype's default_attrs field
with default groups. Change "sugov_attributes" to "sugov_attrs" and use
the ATTRIBUTE_GROUPS macro to create sugov_groups.

This patch was tested by setting the scaling governor to schedutil and
verifying that the sysfs files for the attributes in the default groups
were created.
Signed-off-by: NKimberly Brown <kimbrownkd@gmail.com>
Acked-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 2064fbc7
......@@ -598,13 +598,14 @@ rate_limit_us_store(struct gov_attr_set *attr_set, const char *buf, size_t count
static struct governor_attr rate_limit_us = __ATTR_RW(rate_limit_us);
static struct attribute *sugov_attributes[] = {
static struct attribute *sugov_attrs[] = {
&rate_limit_us.attr,
NULL
};
ATTRIBUTE_GROUPS(sugov);
static struct kobj_type sugov_tunables_ktype = {
.default_attrs = sugov_attributes,
.default_groups = sugov_groups,
.sysfs_ops = &governor_sysfs_ops,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册