summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorad <ad@NetBSD.org>2020-04-24 23:29:17 +0000
committerad <ad@NetBSD.org>2020-04-24 23:29:17 +0000
commitca7fbc9ec9c6e0abdd78af2d938f576f0a9efabd (patch)
treec0f14b390df83babefa561538fd8ad4f0865f3db /sys/dev
parent28caacccf0a90424e07c875088c56cff81a3342e (diff)
On attach figure out how long a single read of the counter register takes
and use that for the adjustment in hpet_delay().
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/hpetvar.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/hpetvar.h b/sys/dev/ic/hpetvar.h
index 3c29524ebfc..b7664106847 100644
--- a/sys/dev/ic/hpetvar.h
+++ b/sys/dev/ic/hpetvar.h
@@ -1,4 +1,4 @@
-/* $NetBSD: hpetvar.h,v 1.5 2020/04/23 20:33:57 ad Exp $ */
+/* $NetBSD: hpetvar.h,v 1.6 2020/04/24 23:29:17 ad Exp $ */
/*
* Copyright (c) 2006 Nicolas Joly
@@ -41,6 +41,7 @@ struct hpet_softc {
bool sc_mapped;
uint32_t sc_config;
int32_t sc_period;
+ int64_t sc_adj;
struct timecounter sc_tc;
};