Page MenuHomeFreeBSD

Initialize CLOCK_UPTIME for itmer events
ClosedPublic

Authored by imp on Jan 16 2026, 7:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 25, 3:07 AM
Unknown Object (File)
Wed, Mar 18, 3:45 AM
Unknown Object (File)
Sat, Mar 14, 9:19 AM
Unknown Object (File)
Fri, Mar 6, 8:35 PM
Unknown Object (File)
Mon, Mar 2, 9:11 AM
Unknown Object (File)
Feb 11 2026, 3:16 AM
Unknown Object (File)
Feb 7 2026, 10:17 PM
Unknown Object (File)
Feb 7 2026, 5:23 PM
Subscribers

Details

Summary

Since we move to implement Linux's CLOCK_MONOTONIC with CLOCK_UPTIME, we
broke the some timer support for Linux. Fix this by initializing
CLOCK_UPTIME as a posix clock so we can use in that context.

PR: 292496
MFC After: 5 days
Fixes: 108de784513d
Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Jan 16 2026, 7:08 PM

You might consider EXTERROR-ise kern_ktimer_create(), there are too many EINVALs there. Specific diagnostic would be useful.

This revision is now accepted and ready to land.Jan 16 2026, 7:21 PM
This revision was automatically updated to reflect the committed changes.