Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 May 2023 20:11:18 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 6ba1be38f67d - main - proc: s/short/u_char for td_stopsched
Message-ID:  <202305182011.34IKBIgB028716@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=6ba1be38f67db2ea82db427fb1ff0c076f066f58

commit 6ba1be38f67db2ea82db427fb1ff0c076f066f58
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2023-05-18 19:44:29 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2023-05-18 19:44:29 +0000

    proc: s/short/u_char for td_stopsched
    
    bool is not used because of massive header mess
    
    While here move it into a gap.
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/sys/proc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 1292315990b3..54d586b06525 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -271,11 +271,11 @@ struct thread {
 	const char	*td_wmesg;	/* (t) Reason for sleep. */
 	volatile u_char td_owepreempt;  /* (k*) Preempt on last critical_exit */
 	u_char		td_tsqueue;	/* (t) Turnstile queue blocked on. */
+	u_char		td_stopsched;	/* (k) Scheduler stopped. */
 	short		td_locks;	/* (k) Debug: count of non-spin locks */
 	short		td_rw_rlocks;	/* (k) Count of rwlock read locks. */
 	short		td_sx_slocks;	/* (k) Count of sx shared locks. */
 	short		td_lk_slocks;	/* (k) Count of lockmgr shared locks. */
-	short		td_stopsched;	/* (k) Scheduler stopped. */
 	struct turnstile *td_blocked;	/* (t) Lock thread is blocked on. */
 	const char	*td_lockname;	/* (t) Name of lock blocked on. */
 	LIST_HEAD(, turnstile) td_contested;	/* (q) Contested locks. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305182011.34IKBIgB028716>