Source-Changes-HG archive

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

[src/trunk]: src/sys kern: Delete kernel_ticks from kernel ABI.



details:   https://anonhg.NetBSD.org/src/rev/0c4f07216f3b
branches:  trunk
changeset: 364373:0c4f07216f3b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Mar 19 14:34:47 2022 +0000

description:
kern: Delete kernel_ticks from kernel ABI.

Use getticks() instead.

diffstat:

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

diffs (44 lines):

diff -r 4fefa426b5a8 -r 0c4f07216f3b sys/kern/kern_clock.c
--- a/sys/kern/kern_clock.c     Sat Mar 19 13:53:32 2022 +0000
+++ b/sys/kern/kern_clock.c     Sat Mar 19 14:34:47 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_clock.c,v 1.147 2022/03/18 23:37:14 riastradh Exp $       */
+/*     $NetBSD: kern_clock.c,v 1.148 2022/03/19 14:34:47 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2000, 2004, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_clock.c,v 1.147 2022/03/18 23:37:14 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_clock.c,v 1.148 2022/03/19 14:34:47 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_dtrace.h"
@@ -135,7 +135,7 @@
 int    profsrc;
 int    schedhz;
 int    profprocs;
-int    hardclock_ticks;
+static int hardclock_ticks;
 static int hardscheddiv; /* hard => sched divider (used if schedhz == 0) */
 static int psdiv;                      /* prof => stat divider */
 int    psratio;                        /* ratio: prof / stat */
diff -r 4fefa426b5a8 -r 0c4f07216f3b sys/sys/kernel.h
--- a/sys/sys/kernel.h  Sat Mar 19 13:53:32 2022 +0000
+++ b/sys/sys/kernel.h  Sat Mar 19 14:34:47 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kernel.h,v 1.33 2020/04/02 16:29:30 maxv Exp $ */
+/*     $NetBSD: kernel.h,v 1.34 2022/03/19 14:34:48 riastradh Exp $    */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -56,7 +56,6 @@
 extern int shutting_down;      /* system is shutting down */
 extern int tick;               /* usec per tick (1000000 / hz) */
 extern int tickadj;            /* "standard" clock skew, us./tick */
-extern int hardclock_ticks;    /* # of hardclock ticks; XXX use getticks()! */
 extern int hz;                 /* system clock's frequency */
 extern int stathz;             /* statistics clock's frequency */
 extern int profhz;             /* profiling clock's frequency */



Home | Main Index | Thread Index | Old Index