mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kayra Cizmeci <kayracizmeci@gmail.com>
To: Ingo Molnar <mingo@redhat.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Juri Lelli <juri.lelli@redhat.com>,
	Vincent Guittot <vincent.guittot@linaro.org>,
	Dietmar Eggemann <dietmar.eggemann@arm.com>,
	Steven Rostedt <rostedt@goodmis.org>,
	Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>,
	Valentin Schneider <vschneid@redhat.com>,
	K Prateek Nayak <kprateek.nayak@amd.com>
Cc: Wei Yang <albinwyang@tencent.com>,
	linux-kernel@vger.kernel.org,
	Kayra Cizmeci <kayracizmeci@gmail.com>
Subject: [PATCH 1/3] sched/stats: Fix comment in sched_info_enqueue()
Date: Sun, 27 Sep 2026 15:35:05 +0300	[thread overview]
Message-ID: <20260927123507.39074-2-kayracizmeci@gmail.com> (raw)
In-Reply-To: <20260927123507.39074-1-kayracizmeci@gmail.com>

The comment currently states that sched_info_enqueue() is
only called from enqueue_task(). This is wrong since
sched_info_enqueue() gets called from sched_info_depart() too.

Fix it by adding the information that sched_info_enqueue()
is called from sched_info_depart() too.

Signed-off-by: Kayra Cizmeci <kayracizmeci@gmail.com>
---
 kernel/sched/stats.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/sched/stats.h b/kernel/sched/stats.h
index ebe0a7765f98..aecca78acc1a 100644
--- a/kernel/sched/stats.h
+++ b/kernel/sched/stats.h
@@ -284,8 +284,8 @@ static void sched_info_arrive(struct rq *rq, struct task_struct *t)
 }
 
 /*
- * This function is only called from enqueue_task(), but also only updates
- * the timestamp if it is already not set.  It's assumed that
+ * This function is only called from enqueue_task() and sched_info_depart(),
+ * but only updates the timestamp if it is already not set. It's assumed that
  * sched_info_dequeue() will clear that stamp when appropriate.
  */
 static inline void sched_info_enqueue(struct rq *rq, struct task_struct *t)
-- 
2.53.0


  reply	other threads:[~2026-09-27 12:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-27 12:35 [PATCH 0/3] sched: Minor comment fixes and cleanups Kayra Cizmeci
2026-09-27 12:35 ` Kayra Cizmeci [this message]
2026-09-27 12:35 ` [PATCH 2/3] sched/fair: Fix typo in requeue_delayed_entity() comment Kayra Cizmeci
2026-09-27 12:35 ` [PATCH 3/3] sched/fair: Remove unused autogroup.h include Kayra Cizmeci

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260927123507.39074-2-kayracizmeci@gmail.com \
    --to=kayracizmeci@gmail.com \
    --cc=albinwyang@tencent.com \
    --cc=bsegall@google.com \
    --cc=dietmar.eggemann@arm.com \
    --cc=juri.lelli@redhat.com \
    --cc=kprateek.nayak@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mgorman@suse.de \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=vincent.guittot@linaro.org \
    --cc=vschneid@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®