Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amiga/dev For clk_timecounter:
details: https://anonhg.NetBSD.org/src/rev/1b2453b82267
branches: trunk
changeset: 933716:1b2453b82267
user: rin <rin%NetBSD.org@localhost>
date: Fri May 29 05:35:47 2020 +0000
description:
For clk_timecounter:
- Use C99 initializer.
- Leave .tc_name NULL initially.
No functional changes.
diffstat:
sys/arch/amiga/dev/clock.c | 15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)
diffs (36 lines):
diff -r 15e08048da35 -r 1b2453b82267 sys/arch/amiga/dev/clock.c
--- a/sys/arch/amiga/dev/clock.c Fri May 29 05:29:23 2020 +0000
+++ b/sys/arch/amiga/dev/clock.c Fri May 29 05:35:47 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.56 2020/05/19 08:43:30 rin Exp $ */
+/* $NetBSD: clock.c,v 1.57 2020/05/29 05:35:47 rin Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.56 2020/05/19 08:43:30 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.57 2020/05/29 05:35:47 rin Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -93,14 +93,9 @@
static u_int clk_getcounter(struct timecounter *);
static struct timecounter clk_timecounter = {
- clk_getcounter, /* get_timecount */
- 0, /* no poll_pps */
- ~0u, /* counter_mask */
- 0, /* frequency */
- "clock", /* name, overriden later */
- 100, /* quality */
- NULL, /* prev */
- NULL, /* next */
+ .tc_get_timecount = clk_getcounter,
+ .tc_counter_mask = ~0u,
+ .tc_quality = 100,
};
CFATTACH_DECL_NEW(clock, 0,
Home |
Main Index |
Thread Index |
Old Index