OpenBSD cvs log

created 2021-01-16T23:29:58Z
begin 2021-01-14T00:00:00Z
end 2021-01-15T00:00:00Z
path src/sys
commits 3

date 2021-01-14T03:32:01Z
author cheloha
files src/sys/kern/vfs_sync.c log diff annotate
message syncer_thread: sleep without lbolt

The syncer_thread() uses lbolt to perform periodic execution. We can
do this without lbolt.

- Adding a local wakeup(9) channel (syncer_chan) and sleep on it.

- Use a local copy of getnsecuptime() to get 1/hz resolution for time
measurements. This is much better than using gettime(9), which is
wholly unsuitable for this use case. Measure how long we spend in
the loop and use this to calculate how long to sleep until the next
execution.

NB: getnsecuptime() is probably ready to be moved to kern_tc.c and
documented.

- Using the system uptime instead of the UTC time avoids issues with
time jumps.

ok mpi@

date 2021-01-14T09:44:33Z
author tb
files src/sys/net/pf.c log diff annotate
message Fix build without carp: ifp0 is only used within #if NCARP > 0.

ok kn mvs

date 2021-01-14T13:52:27Z
author patrick
files src/sys/dev/acpi/acpidmar.c log diff annotate
message Some BIOS seem to provide memory regions <16M in their reserved memory
region reporting table. Since the extent only covered memory starting
at 16M, these regions could not be reserved and would in turn cause a
panic. Make the extent start at 0 and immediately reserve the first
16M right away, so that we can change the reserved memory allocator to
EX_CONFLICTOK to make allocations succeed if they are already reserved.

ok kettenis@