Module Name:    src
Committed By:   ad
Date:           Sun Jan 12 21:40:45 UTC 2020

Modified Files:
        src/sys/sys: lwp.h types.h

Log Message:
Make pri_t a short and get back some more space in struct lwp.


To generate a diff of this commit:
cvs rdiff -u -r1.194 -r1.195 src/sys/sys/lwp.h
cvs rdiff -u -r1.102 -r1.103 src/sys/sys/types.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/lwp.h
diff -u src/sys/sys/lwp.h:1.194 src/sys/sys/lwp.h:1.195
--- src/sys/sys/lwp.h:1.194	Sun Jan 12 18:37:10 2020
+++ src/sys/sys/lwp.h	Sun Jan 12 21:40:44 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: lwp.h,v 1.194 2020/01/12 18:37:10 ad Exp $	*/
+/*	$NetBSD: lwp.h,v 1.195 2020/01/12 21:40:44 ad Exp $	*/
 
 /*
  * Copyright (c) 2001, 2006, 2007, 2008, 2009, 2010, 2019
@@ -103,7 +103,7 @@ struct lwp {
 	int		l_biglocks;	/* l: biglock count before sleep */
 	short		l_stat;		/* l: overall LWP status */
 	short		l_class;	/* l: scheduling class */
-	int		l_kpriority;	/* !: has kernel priority boost */
+	short		l_kpriority;	/* !: has kernel priority boost */
 	pri_t		l_kpribase;	/* !: kernel priority base level */
 	pri_t		l_priority;	/* l: scheduler priority */
 	pri_t		l_inheritedprio;/* l: inherited priority */

Index: src/sys/sys/types.h
diff -u src/sys/sys/types.h:1.102 src/sys/sys/types.h:1.103
--- src/sys/sys/types.h:1.102	Tue Nov  6 16:26:44 2018
+++ src/sys/sys/types.h	Sun Jan 12 21:40:44 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $	*/
+/*	$NetBSD: types.h,v 1.103 2020/01/12 21:40:44 ad Exp $	*/
 
 /*-
  * Copyright (c) 1982, 1986, 1991, 1993, 1994
@@ -317,7 +317,7 @@ typedef	_BSD_USECONDS_T_	useconds_t;
 
 typedef struct kauth_cred *kauth_cred_t;
 
-typedef int pri_t;
+typedef short pri_t;
 
 #endif
 

Reply via email to