Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2026 16:09:04 +0000
From:      ShengYi Hung <aokblast@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 1a5ab1dcf4b4 - stable/14 - Revert "kern_time: Honor the precise option when counting diff"
Message-ID:  <6a19ba20.36806.5bdefbfe@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/14 has been updated by aokblast:

URL: https://cgit.FreeBSD.org/src/commit/?id=1a5ab1dcf4b4e6ddce97c179f888947ad983f8db

commit 1a5ab1dcf4b4e6ddce97c179f888947ad983f8db
Author:     ShengYi Hung <aokblast@FreeBSD.org>
AuthorDate: 2026-05-29 16:02:55 +0000
Commit:     ShengYi Hung <aokblast@FreeBSD.org>
CommitDate: 2026-05-29 16:04:56 +0000

    Revert "kern_time: Honor the precise option when counting diff"
    
    This will not work because this kernel version does not support a
    precise option. We handle the clock uniformly in all cases.
    
    This reverts commit 3886f1b488e47eba98e1523f85cb570694e97385.
---
 sys/kern/kern_time.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c
index 0e3062d2a394..64eef90fc740 100644
--- a/sys/kern/kern_time.c
+++ b/sys/kern/kern_time.c
@@ -564,9 +564,7 @@ kern_clock_nanosleep(struct thread *td, clockid_t clock_id, int flags,
 	} while (error == 0 && is_abs_real && td->td_rtcgen == 0);
 	td->td_rtcgen = 0;
 	if (error != EWOULDBLOCK) {
-		if (precise)
-			sbtt = sbinuptime();
-		else if (TIMESEL(&sbtt, tmp))
+		if (TIMESEL(&sbtt, tmp))
 			sbtt += tc_tick_sbt;
 		if (sbtt >= sbt)
 			return (0);


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a19ba20.36806.5bdefbfe>