HomeFreeBSD

clock_gettime: Fix CLOCK_THREAD_CPUTIME_ID race

Description

clock_gettime: Fix CLOCK_THREAD_CPUTIME_ID race

Use a spinlock section instead of a critical section to synchronize with
statclock(). Otherwise the CLOCK_THREAD_CPUTIME_ID clock can appear to
go backwards.

PR: 262273
Reviewed by: markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D34568

Details

Provenance
firk_cantconnect.ruAuthored on Mar 15 2022, 10:22 PM
markjCommitted on Mar 17 2022, 7:39 PM
Reviewer
markj
Differential Revision
D34568: Move the arm64 DMAP creation to C
Parents
rGfc7e121d88d6: file: Move FILEDESC_FOREACH macros to kern_descrip.c
Branches
Unknown
Tags
Unknown