mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] sched/fair: Trivial fix for comment of check_preempt_tick
@ 2021-01-17  4:08 Jiang Biao
  0 siblings, 0 replies; only message in thread
From: Jiang Biao @ 2021-01-17  4:08 UTC (permalink / raw)
  To: mingo, peterz, juri.lelli, vincent.guittot
  Cc: dietmar.eggemann, rostedt, bsegall, mgorman, bristot,
	linux-kernel, Jiang Biao

From: Jiang Biao <benbjiang@tencent.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@tencent.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


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

only message in thread, other threads:[~2021-01-17  4:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-17  4:08 [PATCH] sched/fair: Trivial fix for comment of check_preempt_tick Jiang Biao

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®