diff options
author | cheloha <cheloha@cvs.openbsd.org> | 2020-10-20 15:59:18 +0000 |
---|---|---|
committer | cheloha <cheloha@cvs.openbsd.org> | 2020-10-20 15:59:18 +0000 |
commit | cabc89bed5cb0c59a140dd68127c40c4a4605021 (patch) | |
tree | f0b23ad65e5057fb119ffd851452b36393488050 /lib | |
parent | d0253955516b23a31fcde9265bbf2005a75e092f (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