Skip to contentSkip to conversation

sched: Fix comments in struct root_domain

PATCH In review Kamalesh Babulal 2 participants 2 messages Nov 15, 2013 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched: Fix comments in struct root_domain

Move comments related to RT overload, above rto_count.

---
 kernel/sched/sched.h | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
kernel/sched/sched.h +4 -5
index 88c85b21d633..ca452e63f203 100644
@@ -372,19 +372,18 @@ struct rt_rq {
  * fully partitioning the member cpus from any other cpuset. Whenever a new
  * exclusive cpuset is created, we also create and attach a new root-domain
  * object.
- *
  */
 struct root_domain {
 	atomic_t refcount;
-	atomic_t rto_count;
-	struct rcu_head rcu;
-	cpumask_var_t span;
-	cpumask_var_t online;
 
 	/*
 	 * The "RT overload" flag: it gets set if a CPU has more than
 	 * one runnable RT task.
 	 */
+	atomic_t rto_count;
+	struct rcu_head rcu;
+	cpumask_var_t span;
+	cpumask_var_t online;
 	cpumask_var_t rto_mask;
 	struct cpupri cpupri;
 };
Signature · 1 line
1.8.4.474.g128a96c
maintainer
#1 lore raw
Quoted 13 lines · Kamalesh Babulal

Move comments related to RT overload, above rto_count.

---
 kernel/sched/sched.h | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
kernel/sched/sched.h +0 -0
index 88c85b21d633..ca452e63f203 100644
@@ -372,19 +372,18 @@ struct rt_rq {
  * fully partitioning the member cpus from any other cpuset. Whenever a new

kernel/sched/sched.h struct rt_rq { · line 382

Quoted 10 lines
kernel/sched/sched.h +0 -5
  * exclusive cpuset is created, we also create and attach a new root-domain
  * object.
- *
  */
 struct root_domain {
 	atomic_t refcount;
-	atomic_t rto_count;
-	struct rcu_head rcu;
-	cpumask_var_t span;
-	cpumask_var_t online;

The span and online mask aren't actually related to the overload muck.

Quoted 15 lines
kernel/sched/sched.h +4 -0
 	/*
 	 * The "RT overload" flag: it gets set if a CPU has more than
 	 * one runnable RT task.
 	 */
+	atomic_t rto_count;
+	struct rcu_head rcu;
+	cpumask_var_t span;
+	cpumask_var_t online;
 	cpumask_var_t rto_mask;
 	struct cpupri cpupri;
 };
Signature · 1 line
1.8.4.474.g128a96c