summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/basename.c
diff options
context:
space:
mode:
authorcheloha <cheloha@openbsd.org>2020-10-20 15:59:17 +0000
committercheloha <cheloha@openbsd.org>2020-10-20 15:59:17 +0000
commitee48eda3aead4d6834f169d8f3655b70f0e4b785 (patch)
tree0506500386b4ce1936be4a252ce08040235e1f14 /lib/libc/gen/basename.c
parentUse a trap instruction that unconditionally terminates the process. (diff)
downloadwireguard-openbsd-ee48eda3aead4d6834f169d8f3655b70f0e4b785.tar.xz
wireguard-openbsd-ee48eda3aead4d6834f169d8f3655b70f0e4b785.zip
alpha, loongson, sh, sparc64: recompute tick, tick_nsec when hz(9) is reset
Normally we set hz(9) at compile-time in sys/conf/param.c to the value of HZ. HZ is one of the fundamental compilation options(4). However, sometimes we need to reset hz(9) at runtime. Whenever we reset hz(9) we need to recompute tick and tick_nsec. Otherwise a variety of "time stuff" in the kernel will not work correctly. For example, most timeouts will expire "too slow" or "too fast". There are a bunch of other places we use tick and tick_nsec that will exhibit similar problems. Test-compiled by deraadt@.
Diffstat (limited to 'lib/libc/gen/basename.c')
0 files changed, 0 insertions, 0 deletions