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)
Fri, Jan 17, 3:32 PM
Unknown Object (File)
Nov 25 2024, 3:29 AM
Unknown Object (File)
Nov 24 2024, 10:32 PM
Unknown Object (File)
Nov 23 2024, 3:34 PM
Unknown Object (File)
Nov 23 2024, 1:38 AM
Unknown Object (File)
Nov 19 2024, 12:56 AM
Unknown Object (File)
Nov 15 2024, 1:42 AM
Unknown Object (File)
Nov 15 2024, 1:20 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