mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] sched/fair: Correct comment for enqueue_task_fair
@ 2023-12-19 12:43 Wang Jinchao
  0 siblings, 0 replies; only message in thread
From: Wang Jinchao @ 2023-12-19 12:43 UTC (permalink / raw)
  To: Ingo Molnar, Peter Zijlstra, Juri Lelli, Vincent Guittot,
	Dietmar Eggemann, Steven Rostedt, Ben Segall, Mel Gorman,
	Daniel Bristot de Oliveira, Valentin Schneider, linux-kernel
  Cc: stone.xulei, wangjinchao

There is `add_nr_running(rq, 1);` in `enqueue_task_fair`, so the
original comment is confusing, correct it.

Signed-off-by: Wang Jinchao <wangjinchao@xfusion.com>
---
 kernel/sched/fair.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index d7a3c63a2171..0230f4594dfc 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -6652,9 +6652,8 @@ static int sched_idle_cpu(int cpu)
 #endif
 
 /*
- * The enqueue_task method is called before nr_running is
- * increased. Here we update the fair scheduling stats and
- * then put the task into the rbtree:
+ * The enqueue_task method is called to update the fair scheduling stats 
+ * and put the task into the rbtree, and increase nr_running. 
  */
 static void
 enqueue_task_fair(struct rq *rq, struct task_struct *p, int flags)
-- 
2.40.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-19 12:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-19 12:43 [PATCH] sched/fair: Correct comment for enqueue_task_fair Wang Jinchao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®