Page MenuHomeFreeBSD

kern/subr_trap.c: repair the HPTS performance hack in userret()
ClosedPublic

Authored by glebius on Nov 30 2023, 10:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 27, 8:16 AM
Unknown Object (File)
Tue, Nov 25, 10:31 PM
Unknown Object (File)
Sun, Nov 23, 11:58 PM
Unknown Object (File)
Thu, Nov 20, 2:50 AM
Unknown Object (File)
Thu, Nov 20, 2:43 AM
Unknown Object (File)
Thu, Nov 20, 2:43 AM
Unknown Object (File)
Thu, Nov 20, 2:42 AM
Unknown Object (File)
Fri, Nov 14, 1:10 AM
Subscribers

Details

Summary

It wasn't functional as subr_trap.c doesn't include opt_inet.h. Put a
better comment in place of the old one. The idea is to use userret() as
a cheap place to call a soft clock. This approach saves CPU on busy
machines and saves power on idle machines. An alternative would be to
constantly schedule callouts. Running with neither callouts nor the soft
clock ruins HPTS precision.

Diff Detail

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