OpenBSD cvs log

created 2019-08-12T15:35:50Z
begin 2019-08-09T00:00:00Z
end 2019-08-10T00:00:00Z
path src/sys
commits 4

date 2019-08-09T09:21:41Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_atom.c log diff annotate
message match radeon/atom.c rev 1.4 and #undef DEBUG before DEBUG macro

date 2019-08-09T09:24:19Z
author jsg
files src/sys/dev/pci/drm/drm_print.c log diff annotate
message don't #define DEBUG, breaks building kernel with option DEBUG
reported by 'mujo' on bugs@

date 2019-08-09T15:20:04Z
author pirofti
files src/sys/arch/amd64/amd64/cpu.c log diff annotate
message Add TSC synchronization for multiprocessor machines.

CPU0 is the reference clock and all others are skewed. During CPU
initialization the clocks synchronize by keeping a registry of each CPU
clock skewness and adapting the TSC read routine accordingly.

This commit also re-enables TSC as the default time source.

Future work includes MSR-based synchronization via IA32_TSC_ADJUST
and perhaps adding a task that is executed periodically to keep the
clocks in sync in case they drift apart.

Inspired from NetBSD.
Tested by many and thoroughly reviewed by kettenis@, thank you!

OK kettenis@, deraadt@

date 2019-08-09T15:20:05Z
author pirofti
files src/sys/arch/amd64/amd64/tsc.c log diff annotate
src/sys/arch/amd64/include/cpu.h log diff annotate
src/sys/arch/amd64/include/cpuvar.h log diff annotate
message Add TSC synchronization for multiprocessor machines.

CPU0 is the reference clock and all others are skewed. During CPU
initialization the clocks synchronize by keeping a registry of each CPU
clock skewness and adapting the TSC read routine accordingly.

This commit also re-enables TSC as the default time source.

Future work includes MSR-based synchronization via IA32_TSC_ADJUST
and perhaps adding a task that is executed periodically to keep the
clocks in sync in case they drift apart.

Inspired from NetBSD.
Tested by many and thoroughly reviewed by kettenis@, thank you!

OK kettenis@, deraadt@