HomeFreeBSD

sleepqueue(9): Remove sbinuptime() from sleepq_timeout().

Description

sleepqueue(9): Remove sbinuptime() from sleepq_timeout().

Callout c_time is always bigger or equal than the scheduled time. It
is also smaller than sbinuptime() and can't change while the callback
is running. So we reliably can use it instead of sbinuptime() here.
In case there was a race and the callout was rescheduled to the later
time, the callback will be called again.

According to profiles it saves ~5% of the timer interrupt time even
with fast TSC timecounter.

MFC after: 1 month

Details

Provenance
mavAuthored on Oct 3 2021, 12:57 AM
Parents
rG9acea1640411: ffs: retire unused fsckpid mount option
Branches
Unknown
Tags
Unknown