OpenBSD cvs log

created 2020-12-27T22:46:30Z
begin 2020-12-25T00:00:00Z
end 2020-12-26T00:00:00Z
path src/sys
commits 6

date 2020-12-25T12:49:31Z
author visa
files src/sys/kern/kern_smr.c log diff annotate
src/sys/sys/sched.h log diff annotate
message Small smr_grace_wait() optimization

Make the SMR thread maintain an explicit system-wide grace period and
make CPUs observe the current grace period when crossing a quiescent
state. This lets the SMR thread avoid a forced context switch for CPUs
that have already entered the latest grace period.

This change provides a small improvement in smr_grace_wait()'s
performance in terms of context switching.

OK mpi@, anton@

date 2020-12-25T12:59:51Z
author visa
files src/sys/arch/arm64/dev/apm.c log diff annotate
src/sys/arch/i386/i386/apm.c log diff annotate
src/sys/arch/loongson/dev/apm.c log diff annotate
src/sys/arch/macppc/dev/apm.c log diff annotate
src/sys/arch/sparc64/dev/vldcp.c log diff annotate
src/sys/dev/audio.c log diff annotate
message Refactor klist insertion and removal

Rename klist_{insert,remove}() to klist_{insert,remove}_locked().
These functions assume that the caller has locked the klist. The current
state of locking remains intact because the kernel lock is still used
with all klists.

Add new functions klist_insert() and klist_remove() that lock the klist
internally. This allows some code simplification.

OK mpi@

date 2020-12-25T12:59:52Z
author visa
files src/sys/dev/hotplug.c log diff annotate
src/sys/dev/midi.c log diff annotate
src/sys/dev/video.c log diff annotate
src/sys/dev/vscsi.c log diff annotate
src/sys/dev/acpi/acpi.c log diff annotate
src/sys/dev/pci/drm/drm_drv.c log diff annotate
src/sys/dev/usb/ugen.c log diff annotate
src/sys/dev/usb/uhid.c log diff annotate
src/sys/dev/wscons/wsevent.c log diff annotate
src/sys/isofs/cd9660/cd9660_vnops.c log diff annotate
src/sys/kern/kern_event.c log diff annotate
src/sys/kern/kern_sig.c log diff annotate
src/sys/kern/subr_log.c log diff annotate
src/sys/kern/sys_pipe.c log diff annotate
src/sys/kern/tty.c log diff annotate
src/sys/kern/tty_pty.c log diff annotate
src/sys/kern/uipc_socket.c log diff annotate
src/sys/miscfs/fifofs/fifo_vnops.c log diff annotate
src/sys/miscfs/fuse/fuse_device.c log diff annotate
src/sys/miscfs/fuse/fuse_vnops.c log diff annotate
src/sys/msdosfs/msdosfs_vnops.c log diff annotate
message Refactor klist insertion and removal

Rename klist_{insert,remove}() to klist_{insert,remove}_locked().
These functions assume that the caller has locked the klist. The current
state of locking remains intact because the kernel lock is still used
with all klists.

Add new functions klist_insert() and klist_remove() that lock the klist
internally. This allows some code simplification.

OK mpi@

date 2020-12-25T12:59:53Z
author visa
files src/sys/net/bpf.c log diff annotate
src/sys/net/if_pppx.c log diff annotate
src/sys/net/if_tun.c log diff annotate
src/sys/net/switchctl.c log diff annotate
src/sys/nfs/nfs_kq.c log diff annotate
src/sys/sys/event.h log diff annotate
src/sys/tmpfs/tmpfs_vnops.c log diff annotate
src/sys/ufs/ufs/ufs_vnops.c log diff annotate
message Refactor klist insertion and removal

Rename klist_{insert,remove}() to klist_{insert,remove}_locked().
These functions assume that the caller has locked the klist. The current
state of locking remains intact because the kernel lock is still used
with all klists.

Add new functions klist_insert() and klist_remove() that lock the klist
internally. This allows some code simplification.

OK mpi@

date 2020-12-25T21:48:27Z
author jsg
files src/sys/dev/pci/dwiic_pci.c log diff annotate
message match on Gemini Lake I2C

Makes touchpad work on Joel Carnat's Teclast F7 Plus laptop.
Patch from James Hastings.

date 2020-12-25T22:38:08Z
author dlg
files src/sys/dev/pci/if_mcx.c log diff annotate
message expose the mcx timer as a timecounter.

this is mostly to help me better understand where i accumulate error
when trying to sync the chip to the kernel clocks. ie, if im using
mcx as the kernel clock source and my attempts to sync to it still
produce errors, then my code is very wrong instead of slightly
wrong.

it's also fun and a tiny amount of code.