]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
cgroup/cpuset: Rename functions dealing with DEADLINE accounting
authorJuri Lelli <juri.lelli@redhat.com>
Sun, 20 Aug 2023 15:21:39 +0000 (16:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2023 14:23:17 +0000 (16:23 +0200)
commit ad3a557daf6915296a43ef97a3e9c48e076c9dd8 upstream.

rebuild_root_domains() and update_tasks_root_domain() have neutral
names, but actually deal with DEADLINE bandwidth accounting.

Rename them to use 'dl_' prefix so that intent is more clear.

No functional change.

Suggested-by: Qais Yousef (Google) <qyousef@layalina.io>
Signed-off-by: Juri Lelli <juri.lelli@redhat.com>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Qais Yousef (Google) <qyousef@layalina.io>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/cgroup/cpuset.c

index b476591168dcf1abfdf57d9138204fc4a88ffb70..96b56226a3046ec95b2e0ef2743ff907f98c3911 100644 (file)
@@ -912,7 +912,7 @@ done:
        return ndoms;
 }
 
-static void update_tasks_root_domain(struct cpuset *cs)
+static void dl_update_tasks_root_domain(struct cpuset *cs)
 {
        struct css_task_iter it;
        struct task_struct *task;
@@ -925,7 +925,7 @@ static void update_tasks_root_domain(struct cpuset *cs)
        css_task_iter_end(&it);
 }
 
-static void rebuild_root_domains(void)
+static void dl_rebuild_rd_accounting(void)
 {
        struct cpuset *cs = NULL;
        struct cgroup_subsys_state *pos_css;
@@ -953,7 +953,7 @@ static void rebuild_root_domains(void)
 
                rcu_read_unlock();
 
-               update_tasks_root_domain(cs);
+               dl_update_tasks_root_domain(cs);
 
                rcu_read_lock();
                css_put(&cs->css);
@@ -967,7 +967,7 @@ partition_and_rebuild_sched_domains(int ndoms_new, cpumask_var_t doms_new[],
 {
        mutex_lock(&sched_domains_mutex);
        partition_sched_domains_locked(ndoms_new, doms_new, dattr_new);
-       rebuild_root_domains();
+       dl_rebuild_rd_accounting();
        mutex_unlock(&sched_domains_mutex);
 }