git: 3d898485e707 - stable/15 - sched_ule: fix comment on ts_slice

From: Minsoo Choo <mchoo_at_FreeBSD.org>
Date: Fri, 02 Oct 2026 15:35:10 UTC
The branch stable/15 has been updated by mchoo:

URL: https://cgit.FreeBSD.org/src/commit/?id=3d898485e707ce72818490ee423748ac76df401b

commit 3d898485e707ce72818490ee423748ac76df401b
Author:     Minsoo Choo <mchoo@FreeBSD.org>
AuthorDate: 2026-08-24 02:25:38 +0000
Commit:     Minsoo Choo <mchoo@FreeBSD.org>
CommitDate: 2026-10-02 15:34:31 +0000

    sched_ule: fix comment on ts_slice
    
    In ULE ts_slice stores the number of ticks of slice passed not
    remaining.
    
    Reviewed by:    olce
    Approved by:    olce (mentor)
    MFC after:      2 weeks
    Sponsored by:   FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D59407
    
    (cherry picked from commit 872074c50e99ab8858c2defe255d716f8f75f15b)
---
 sys/kern/sched_ule.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index e4dde92e181f..0fe463b43073 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -87,7 +87,7 @@ struct td_sched {
 	short		ts_flags;	/* TSF_* flags. */
 	int		ts_cpu;		/* CPU we are on, or were last on. */
 	u_int		ts_rltick;	/* Real last tick, for affinity. */
-	u_int		ts_slice;	/* Ticks of slice remaining. */
+	u_int		ts_slice;	/* Ticks of slice passed. */
 	u_int		ts_ftick;	/* %CPU window's first tick */
 	u_int		ts_ltick;	/* %CPU window's last tick */
 	/* All ticks count below are stored shifted by SCHED_TICK_SHIFT. */