commit 7b21e5e4a2ba4592a7e27970929718a29bcbb614 Author: Imre Vadász <i...@vdsz.com> Date: Tue Dec 25 16:02:38 2018 +0100
kernel - Factor out TSC cputimer into common x86_64 code, use for vkernel. * This adds a command line flag -T to the vkernel, to force disable use of the TSC cputimer. * By default the TSC will be used as a cputimer for the vkernel when the TSC is invariant and mpsync according to the hw.tsc_invariant and hw.tsc_mpsync sysctl values of the host. Summary of changes: share/man/man7/vkernel.7 | 12 +- sys/cpu/x86_64/misc/cputimer_tsc.c | 192 +++++++++++++++++++++++++++++ sys/platform/pc64/conf/files | 1 + sys/platform/pc64/isa/clock.c | 128 ------------------- sys/platform/vkernel64/conf/files | 1 + sys/platform/vkernel64/platform/init.c | 9 +- sys/platform/vkernel64/platform/systimer.c | 19 +-- 7 files changed, 220 insertions(+), 142 deletions(-) create mode 100644 sys/cpu/x86_64/misc/cputimer_tsc.c http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7b21e5e4a2ba4592a7e27970929718a29bcbb614 -- DragonFly BSD source repository