git: 5d67118d2c73 - main - sched_4bsd: update function name in comment
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Sep 2026 14:14:47 UTC
The branch main has been updated by mchoo:
URL: https://cgit.FreeBSD.org/src/commit/?id=5d67118d2c7388bdc065e640719553ff4d9eea89
commit 5d67118d2c7388bdc065e640719553ff4d9eea89
Author: Minsoo Choo <mchoo@FreeBSD.org>
AuthorDate: 2026-08-24 02:25:32 +0000
Commit: Minsoo Choo <mchoo@FreeBSD.org>
CommitDate: 2026-09-18 14:14:12 +0000
sched_4bsd: update function name in comment
In b43179fbe815 ("Create a new scheduler api..."), schedclock() was
renamed to sched_clock() but the function name in the comment remained
still. Update the comment to reflect up-to-date name for schedclock().
Reviewed by: olce
Approved by: olce (mentor)
Fixes: b43179fbe815 ("Create a new scheduler api...")
MFC after: 2 weeks
Sponsored by: FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D59397
---
sys/kern/sched_4bsd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c
index f5f31ff4fbfe..228650b0706c 100644
--- a/sys/kern/sched_4bsd.c
+++ b/sys/kern/sched_4bsd.c
@@ -363,7 +363,7 @@ maybe_preempt(struct thread *td)
* Note that, as ps(1) mentions, this can let percentages
* total over 100% (I've seen 137.9% for 3 processes).
*
- * Note that schedclock() updates ts_estcpu and p_cpticks asynchronously.
+ * Note that sched_clock() updates ts_estcpu and p_cpticks asynchronously.
*
* We wish to decay away 90% of ts_estcpu in (5 * loadavg) seconds.
* That is, the system wants to compute a value of decay such