glkclk disabled keep correct values of those. NFC
-/* $OpenBSD: glx.c,v 1.11 2020/10/20 15:59:17 cheloha Exp $ */
+/* $OpenBSD: glx.c,v 1.12 2022/08/18 06:31:36 miod Exp $ */
/*
* Copyright (c) 2009 Miodrag Vallat.
msr |= 4 << 24;
msr |= 3 << 28;
wrmsr(PIC_YSEL_HIGH, msr);
-
- /*
- * MFGPT runs on powers of two, adjust the hz value accordingly.
- */
- stathz = hz = 128;
- tick = 1000000 / hz;
- tick_nsec = 1000000000 / hz;
}
uint64_t
-/* $OpenBSD: glxclk.c,v 1.6 2022/04/06 18:59:26 naddy Exp $ */
+/* $OpenBSD: glxclk.c,v 1.7 2022/08/18 06:31:36 miod Exp $ */
/*
* Copyright (c) 2013 Paul Irofti.
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/device.h>
-#include <sys/proc.h>
+#include <sys/kernel.h>
#include <machine/bus.h>
#include <machine/autoconf.h>
return;
}
+ /*
+ * MFGPT runs on powers of two, adjust the hz value accordingly.
+ */
+ stathz = hz = 128;
+ tick = 1000000 / hz;
+ tick_nsec = 1000000000 / hz;
+
printf(": clock");
/* Set comparator 2 */