Source-Changes-HG archive

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

[src/trunk]: src/sys sys/sched.h: New home for extern sched_pstats_ticks in k...



details:   https://anonhg.NetBSD.org/src/rev/d6dafe7d16a3
branches:  trunk
changeset: 372064:d6dafe7d16a3
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Oct 26 23:24:09 2022 +0000

description:
sys/sched.h: New home for extern sched_pstats_ticks in kernel.

diffstat:

 sys/kern/sched_4bsd.c |  6 ++----
 sys/sys/sched.h       |  3 ++-
 2 files changed, 4 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r 0596e0a8220e -r d6dafe7d16a3 sys/kern/sched_4bsd.c
--- a/sys/kern/sched_4bsd.c     Wed Oct 26 23:23:52 2022 +0000
+++ b/sys/kern/sched_4bsd.c     Wed Oct 26 23:24:09 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sched_4bsd.c,v 1.45 2021/08/09 19:57:57 andvar Exp $   */
+/*     $NetBSD: sched_4bsd.c,v 1.46 2022/10/26 23:24:09 riastradh Exp $        */
 
 /*
  * Copyright (c) 1999, 2000, 2004, 2006, 2007, 2008, 2019, 2020
@@ -69,7 +69,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sched_4bsd.c,v 1.45 2021/08/09 19:57:57 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sched_4bsd.c,v 1.46 2022/10/26 23:24:09 riastradh Exp $");
 
 #include "opt_ddb.h"
 #include "opt_lockdebug.h"
@@ -90,8 +90,6 @@
 static void updatepri(struct lwp *);
 static void resetpriority(struct lwp *);
 
-extern unsigned int sched_pstats_ticks; /* defined in kern_synch.c */
-
 /* Number of hardclock ticks per sched_tick() */
 u_int sched_rrticks __read_mostly;
 
diff -r 0596e0a8220e -r d6dafe7d16a3 sys/sys/sched.h
--- a/sys/sys/sched.h   Wed Oct 26 23:23:52 2022 +0000
+++ b/sys/sys/sched.h   Wed Oct 26 23:24:09 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sched.h,v 1.90 2020/05/23 23:37:17 ad Exp $    */
+/*     $NetBSD: sched.h,v 1.91 2022/10/26 23:24:09 riastradh Exp $     */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2007, 2008, 2019, 2020
@@ -211,6 +211,7 @@
 
 extern int schedhz;                    /* ideally: 16 */
 extern u_int sched_rrticks;
+extern u_int sched_pstats_ticks;
 
 struct proc;
 struct cpu_info;



Home | Main Index | Thread Index | Old Index