summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcheloha <cheloha@cvs.openbsd.org>2020-10-20 15:59:18 +0000
committercheloha <cheloha@cvs.openbsd.org>2020-10-20 15:59:18 +0000
commitcabc89bed5cb0c59a140dd68127c40c4a4605021 (patch)
treef0b23ad65e5057fb119ffd851452b36393488050 /lib
parentd0253955516b23a31fcde9265bbf2005a75e092f (diff)
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')
0 files changed, 0 insertions, 0 deletions