Skip to contentSkip to conversation

sched/fair: Trivial fix for comment of check_preempt_tick

PATCH New Jiang Biao 1 participant 1 message Jan 17, 2021 Scheduler

lore
Share & tools
lore

Jiang Biao

author
#0 lore raw

PATCH 1/1 sched/fair: Trivial fix for comment of check_preempt_tick

From: Jiang Biao <[email protected]>

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.

---
 kernel/sched/fair.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/fair.c +1 -1
index 04a3ce20da67..c0374c1152e0 100644
@@ -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)
Signature · 1 line
2.21.0