Skip to contentSkip to conversation

sched/fair: clean up some inconsistent indenting

PATCH In review Yang Li 2 participants 2 messages Feb 17, 2022 Scheduler

lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 sched/fair: clean up some inconsistent indenting

Eliminate the follow smatch warning:
kernel/sched/fair.c:5661 enqueue_task_fair() warn: inconsistent indenting

---
 kernel/sched/fair.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
kernel/sched/fair.c +6 -6
index 28b91f11b618..1ff3f45e24f3 100644
@@ -5654,12 +5654,12 @@ enqueue_task_fair(struct rq *rq, struct task_struct *p, int flags)
 		if (cfs_rq_throttled(cfs_rq))
 			goto enqueue_throttle;
 
-               /*
-                * One parent has been throttled and cfs_rq removed from the
-                * list. Add it back to not break the leaf list.
-                */
-               if (throttled_hierarchy(cfs_rq))
-                       list_add_leaf_cfs_rq(cfs_rq);
+		/*
+		 * One parent has been throttled and cfs_rq removed from the
+		 * list. Add it back to not break the leaf list.
+		 */
+		if (throttled_hierarchy(cfs_rq))
+			list_add_leaf_cfs_rq(cfs_rq);
 	}
 
 	/* At this point se is NULL and we are at root level*/
Signature · 1 line
2.20.1.7.g153144c
reviewer
#1 lore raw
Quoted 6 lines · Yang Li

Eliminate the follow smatch warning:
kernel/sched/fair.c:5661 enqueue_task_fair() warn: inconsistent indenting

This is a whitespace fix that is more appropriate if modifying the actual code and fixing the whitspace damage at the same time. Right now, it's more useful for git blame to point to the commits that made meaningful changes;

39f23ce07b93 ("sched/fair: Fix unthrottle_cfs_rq() for leaf_cfs_rq list") 304000390f88 ("sched: Cgroup SCHED_IDLE support")

Signature · 2 lines
Mel Gorman
SUSE Labs