Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic On attach figure out how long a single read of th...



details:   https://anonhg.NetBSD.org/src/rev/aa98ac78eb80
branches:  trunk
changeset: 931244:aa98ac78eb80
user:      ad <ad%NetBSD.org@localhost>
date:      Fri Apr 24 23:29:17 2020 +0000

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

diffstat:

 sys/dev/ic/hpetvar.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 55b2c7a35ebc -r aa98ac78eb80 sys/dev/ic/hpetvar.h
--- a/sys/dev/ic/hpetvar.h      Fri Apr 24 22:50:55 2020 +0000
+++ b/sys/dev/ic/hpetvar.h      Fri Apr 24 23:29:17 2020 +0000
@@ -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 @@
        bool                    sc_mapped;
        uint32_t                sc_config;
        int32_t                 sc_period;
+       int64_t                 sc_adj;
        struct                  timecounter sc_tc;
 };
 



Home | Main Index | Thread Index | Old Index