Module Name: src Committed By: isaki Date: Sat Apr 29 03:36:55 UTC 2023
Modified Files: src/sys/kern: subr_time.c Log Message: White space fix. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/kern/subr_time.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/subr_time.c diff -u src/sys/kern/subr_time.c:1.36 src/sys/kern/subr_time.c:1.37 --- src/sys/kern/subr_time.c:1.36 Sun Apr 9 09:18:09 2023 +++ src/sys/kern/subr_time.c Sat Apr 29 03:36:55 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: subr_time.c,v 1.36 2023/04/09 09:18:09 riastradh Exp $ */ +/* $NetBSD: subr_time.c,v 1.37 2023/04/29 03:36:55 isaki Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -33,7 +33,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: subr_time.c,v 1.36 2023/04/09 09:18:09 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_time.c,v 1.37 2023/04/29 03:36:55 isaki Exp $"); #include <sys/param.h> #include <sys/kernel.h> @@ -255,10 +255,10 @@ ticks2ts(uint64_t ticks, struct timespec uint64_t sticks = ticks - ts->tv_sec * hz; if (sticks > BINTIME_SCALE_MS) /* floor(2^64 / 1000) */ ts->tv_nsec = sticks / hz * 1000000000LL; - else if (sticks > BINTIME_SCALE_US) /* floor(2^64 / 1000000) */ - ts->tv_nsec = sticks * 1000LL / hz * 1000000LL; + else if (sticks > BINTIME_SCALE_US) /* floor(2^64 / 1000000) */ + ts->tv_nsec = sticks * 1000LL / hz * 1000000LL; else - ts->tv_nsec = sticks * 1000000000LL / hz; + ts->tv_nsec = sticks * 1000000000LL / hz; DPRINTF(("%s: %ju/%ju -> %ju.%ju\n", __func__, (uintmax_t)ticks, (uintmax_t)sticks, (uintmax_t)ts->tv_sec, (uintmax_t)ts->tv_nsec)); @@ -307,7 +307,7 @@ clock_gettime1(clockid_t clock_id, struc DPRINTF(("%s: r=%ju, s=%ju\n", __func__, (uintmax_t)l->l_rticksum, (uintmax_t)l->l_slpticksum)); mutex_exit(p->p_lock); - } else + } else ticks = (uint64_t)-1; if (ticks != (uint64_t)-1) {