Skip to content

Commit 53725c4

Browse files
haokexinrafaeljw
authored andcommitted
cpufreq: schedutil: Use to_gov_attr_set() to get the gov_attr_set
The to_gov_attr_set() has been moved to the cpufreq.h, so use it to get the gov_attr_set. Signed-off-by: Kevin Hao <haokexin@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent ae26508 commit 53725c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/sched/cpufreq_schedutil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ ATTRIBUTE_GROUPS(sugov);
539539

540540
static void sugov_tunables_free(struct kobject *kobj)
541541
{
542-
struct gov_attr_set *attr_set = container_of(kobj, struct gov_attr_set, kobj);
542+
struct gov_attr_set *attr_set = to_gov_attr_set(kobj);
543543

544544
kfree(to_sugov_tunables(attr_set));
545545
}

0 commit comments

Comments
 (0)