Source-Changes-HG archive

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

[src/trunk]: src/sys/kern kern/kern_synch.c: Get averunnable from sys/resourc...



details:   https://anonhg.NetBSD.org/src/rev/79563fd5b14d
branches:  trunk
changeset: 372062:79563fd5b14d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Oct 26 23:23:28 2022 +0000

description:
kern/kern_synch.c: Get averunnable from sys/resource.h.

diffstat:

 sys/kern/kern_synch.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 43422602df03 -r 79563fd5b14d sys/kern/kern_synch.c
--- a/sys/kern/kern_synch.c     Wed Oct 26 23:22:54 2022 +0000
+++ b/sys/kern/kern_synch.c     Wed Oct 26 23:23:28 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_synch.c,v 1.351 2022/06/29 22:27:01 riastradh Exp $       */
+/*     $NetBSD: kern_synch.c,v 1.352 2022/10/26 23:23:28 riastradh Exp $       */
 
 /*-
  * Copyright (c) 1999, 2000, 2004, 2006, 2007, 2008, 2009, 2019, 2020
@@ -69,7 +69,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.351 2022/06/29 22:27:01 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.352 2022/10/26 23:23:28 riastradh Exp $");
 
 #include "opt_kstack.h"
 #include "opt_dtrace.h"
@@ -82,6 +82,7 @@
 #include <sys/kernel.h>
 #include <sys/cpu.h>
 #include <sys/pserialize.h>
+#include <sys/resource.h>
 #include <sys/resourcevar.h>
 #include <sys/rwlock.h>
 #include <sys/sched.h>
@@ -1104,7 +1105,6 @@
 void
 sched_pstats(void)
 {
-       extern struct loadavg averunnable;
        struct loadavg *avg = &averunnable;
        const int clkhz = (stathz != 0 ? stathz : hz);
        static bool backwards = false;



Home | Main Index | Thread Index | Old Index