Module Name: src Committed By: riastradh Date: Mon Sep 3 21:29:30 UTC 2018
Modified Files: src/sys/kern: kern_clock.c Log Message: C99 initializers for intr_timecounter. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.137 -r1.138 src/sys/kern/kern_clock.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/kern_clock.c diff -u src/sys/kern/kern_clock.c:1.137 src/sys/kern/kern_clock.c:1.138 --- src/sys/kern/kern_clock.c:1.137 Thu Jul 12 10:46:48 2018 +++ src/sys/kern/kern_clock.c Mon Sep 3 21:29:30 2018 @@ -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 @@ int psratio; /* ratio: prof / stat */ 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