OSDN Git Service

cpuset: relocate a misplaced comment
authorZhao Hongjiang <zhaohongjiang@huawei.com>
Sat, 27 Jul 2013 03:56:53 +0000 (11:56 +0800)
committerTejun Heo <tj@kernel.org>
Mon, 29 Jul 2013 18:13:56 +0000 (14:13 -0400)
Comment for cpuset_css_offline() was on top of cpuset_css_free().
Move it.

Signed-off-by: Zhao Hongjiang <zhaohongjiang@huawei.com>
Acked-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cpuset.c

index 2ddd9b9..703bfd5 100644 (file)
@@ -2020,6 +2020,12 @@ out_unlock:
        return 0;
 }
 
+/*
+ * If the cpuset being removed has its flag 'sched_load_balance'
+ * enabled, then simulate turning sched_load_balance off, which
+ * will call rebuild_sched_domains_locked().
+ */
+
 static void cpuset_css_offline(struct cgroup *cgrp)
 {
        struct cpuset *cs = cgroup_cs(cgrp);
@@ -2035,12 +2041,6 @@ static void cpuset_css_offline(struct cgroup *cgrp)
        mutex_unlock(&cpuset_mutex);
 }
 
-/*
- * If the cpuset being removed has its flag 'sched_load_balance'
- * enabled, then simulate turning sched_load_balance off, which
- * will call rebuild_sched_domains_locked().
- */
-
 static void cpuset_css_free(struct cgroup *cgrp)
 {
        struct cpuset *cs = cgroup_cs(cgrp);