Page MenuHomeFreeBSD

Initialize CLOCK_UPTIME for itmer events
ClosedPublic

Authored by imp on Jan 16 2026, 7:08 PM.
Tags
None
Referenced Files
F156953003: D54746.id169914.diff
Sun, May 17, 2:57 PM
F156952982: D54746.id169914.diff
Sun, May 17, 2:57 PM
F156942665: D54746.id.diff
Sun, May 17, 1:01 PM
Unknown Object (File)
Sat, May 16, 6:46 PM
Unknown Object (File)
Wed, May 13, 9:33 PM
Unknown Object (File)
Wed, May 13, 3:52 PM
Unknown Object (File)
Thu, May 7, 12:00 PM
Unknown Object (File)
Tue, Apr 28, 9:25 AM
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.