Source-Changes-HG archive

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

[src/trunk]: src/sys/kern C99 initializers for intr_timecounter.



details:   https://anonhg.NetBSD.org/src/rev/8837443de147
branches:  trunk
changeset: 993296:8837443de147
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Sep 03 21:29:30 2018 +0000

description:
C99 initializers for intr_timecounter.

No functional change.

diffstat:

 sys/kern/kern_clock.c |  20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diffs (41 lines):

diff -r 84eaa1a13261 -r 8837443de147 sys/kern/kern_clock.c
--- a/sys/kern/kern_clock.c     Mon Sep 03 21:26:19 2018 +0000
+++ b/sys/kern/kern_clock.c     Mon Sep 03 21:29:30 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_clock.c,v 1.137 2018/07/12 10:46:48 maxv Exp $    */
+/*     $NetBSD: kern_clock.c,v 1.138 2018/09/03 21:29:30 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.137 2018/07/12 10:46:48 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_clock.c,v 1.138 2018/09/03 21:29:30 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_dtrace.h"
@@ -141,14 +141,14 @@
 static u_int get_intr_timecount(struct timecounter *);
 
 static struct timecounter intr_timecounter = {
-       get_intr_timecount,     /* get_timecount */
-       0,                      /* no poll_pps */
-       ~0u,                    /* counter_mask */
-       0,                      /* frequency */
-       "clockinterrupt",       /* name */
-       0,                      /* quality - minimum implementation level for a clock */
-       NULL,                   /* prev */
-       NULL,                   /* next */
+       .tc_get_timecount       = get_intr_timecount,
+       .tc_poll_pps            = NULL,
+       .tc_counter_mask        = ~0u,
+       .tc_frequency           = 0,
+       .tc_name                = "clockinterrupt",
+       /* quality - minimum implementation level for a clock */
+       .tc_quality             = 0,
+       .tc_priv                = NULL,
 };
 
 static u_int



Home | Main Index | Thread Index | Old Index