Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Make pri_t a short and get back some more space in s...



details:   https://anonhg.NetBSD.org/src/rev/5e25c8cc73ef
branches:  trunk
changeset: 847970:5e25c8cc73ef
user:      ad <ad%NetBSD.org@localhost>
date:      Sun Jan 12 21:40:44 2020 +0000

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

diffstat:

 sys/sys/lwp.h   |  4 ++--
 sys/sys/types.h |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r b09cbeaf1b77 -r 5e25c8cc73ef sys/sys/lwp.h
--- a/sys/sys/lwp.h     Sun Jan 12 21:37:15 2020 +0000
+++ b/sys/sys/lwp.h     Sun Jan 12 21:40:44 2020 +0000
@@ -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 @@
        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 */
diff -r b09cbeaf1b77 -r 5e25c8cc73ef sys/sys/types.h
--- a/sys/sys/types.h   Sun Jan 12 21:37:15 2020 +0000
+++ b/sys/sys/types.h   Sun Jan 12 21:40:44 2020 +0000
@@ -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 struct kauth_cred *kauth_cred_t;
 
-typedef int pri_t;
+typedef short pri_t;
 
 #endif
 



Home | Main Index | Thread Index | Old Index