Module Name:    src
Committed By:   ad
Date:           Fri Apr 24 23:29:17 UTC 2020

Modified Files:
        src/sys/dev/ic: hpetvar.h

Log Message:
On attach figure out how long a single read of the counter register takes
and use that for the adjustment in hpet_delay().


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/ic/hpetvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/hpetvar.h
diff -u src/sys/dev/ic/hpetvar.h:1.5 src/sys/dev/ic/hpetvar.h:1.6
--- src/sys/dev/ic/hpetvar.h:1.5	Thu Apr 23 20:33:57 2020
+++ src/sys/dev/ic/hpetvar.h	Fri Apr 24 23:29:17 2020
@@ -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;
 };
 

Reply via email to