[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210117040847.12217-1-benbjiang@tencent.com>
Date: Sun, 17 Jan 2021 12:08:47 +0800
From: Jiang Biao <benbjiang@...il.com>
To: mingo@...hat.com, peterz@...radead.org, juri.lelli@...hat.com,
vincent.guittot@...aro.org
Cc: dietmar.eggemann@....com, rostedt@...dmis.org, bsegall@...gle.com,
mgorman@...e.de, bristot@...hat.com, linux-kernel@...r.kernel.org,
Jiang Biao <benbjiang@...cent.com>
Subject: [PATCH] sched/fair: Trivial fix for comment of check_preempt_tick
From: Jiang Biao <benbjiang@...cent.com>
check_preempt_tick() is not just for newly woken task preemption,
and check_preempt_wakeup() is instead.
The current comment of check_preempt_tick() is a little confusing.
Signed-off-by: Jiang Biao <benbjiang@...cent.com>
---
kernel/sched/fair.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 04a3ce20da67..c0374c1152e0 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -4360,7 +4360,7 @@ dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int flags)
}
/*
- * Preempt the current task with a newly woken task if needed:
+ * Preempt the current task with the leftmost task if needed:
*/
static void
check_preempt_tick(struct cfs_rq *cfs_rq, struct sched_entity *curr)
--
2.21.0
Powered by blists - more mailing lists