Module Name: src
Committed By: riastradh
Date: Sun Jul 30 12:39:18 UTC 2023
Modified Files:
src/sys/kern: kern_tc.c
Log Message:
timecounter(9): Nix trailing whitespace.
No functional change intended.
To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/sys/kern/kern_tc.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_tc.c
diff -u src/sys/kern/kern_tc.c:1.75 src/sys/kern/kern_tc.c:1.76
--- src/sys/kern/kern_tc.c:1.75 Fri Jul 28 10:37:28 2023
+++ src/sys/kern/kern_tc.c Sun Jul 30 12:39:18 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_tc.c,v 1.75 2023/07/28 10:37:28 riastradh Exp $ */
+/* $NetBSD: kern_tc.c,v 1.76 2023/07/30 12:39:18 riastradh Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
#include <sys/cdefs.h>
/* __FBSDID("$FreeBSD: src/sys/kern/kern_tc.c,v 1.166 2005/09/19 22:16:31 andre Exp $"); */
-__KERNEL_RCSID(0, "$NetBSD: kern_tc.c,v 1.75 2023/07/28 10:37:28 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_tc.c,v 1.76 2023/07/30 12:39:18 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "opt_ntp.h"
@@ -292,7 +292,7 @@ sysctl_kern_timecounter_hardware(SYSCTLF
strncmp(newname, tc->tc_name, sizeof(newname)) == 0)
return error;
- if (l != NULL && (error = kauth_authorize_system(l->l_cred,
+ if (l != NULL && (error = kauth_authorize_system(l->l_cred,
KAUTH_SYSTEM_TIME, KAUTH_REQ_SYSTEM_TIME_TIMECOUNTERS, newname,
NULL, NULL)) != 0)
return error;
@@ -1171,7 +1171,7 @@ pps_event(struct pps_state *pps, int eve
* a second but do not need to be exactly in phase
* with the UTC second but should be close to it.
* this relaxation of requirements allows callout
- * driven timestamping mechanisms to feed to pps
+ * driven timestamping mechanisms to feed to pps
* capture/kernel pll logic.
*
* calling pattern is:
@@ -1244,7 +1244,7 @@ pps_ref_event(struct pps_state *pps,
#ifdef PPS_DEBUG
if (ppsdebug & 0x1) {
struct timespec tmsp;
-
+
if (ref_ts == NULL) {
tmsp.tv_sec = 0;
tmsp.tv_nsec = 0;
@@ -1337,7 +1337,7 @@ pps_ref_event(struct pps_state *pps,
btd = bt;
bintime_sub(&btd, &bt_ref);
- /*
+ /*
* simulate a PPS timestamp by dropping the fraction
* and applying the offset
*/
@@ -1347,7 +1347,7 @@ pps_ref_event(struct pps_state *pps,
bintime_add(&bt, &btd);
} else {
/*
- * create ref_ts from current time -
+ * create ref_ts from current time -
* we are supposed to be called on
* the second mark
*/
@@ -1422,7 +1422,7 @@ pps_ref_event(struct pps_state *pps,
tcount = pps->capcount - pps->ppscount[2];
pps->ppscount[2] = pps->capcount;
tcount &= pps->capth->th_counter->tc_counter_mask;
-
+
/* calculate elapsed ref time */
btd = bt_ref;
bintime_sub(&btd, &pps->ref_time);
@@ -1441,7 +1441,7 @@ pps_ref_event(struct pps_state *pps,
* the frequency with the elapsed period
* we pick a fraction of 30 bits
* ~1ns resolution for elapsed time
- */
+ */
div = (uint64_t)btd.sec << 30;
div |= (btd.frac >> 34) & (((uint64_t)1 << 30) - 1);
div *= pps->capth->th_counter->tc_frequency;