diff options
author | Paul Irofti <pirofti@cvs.openbsd.org> | 2020-06-22 12:27:55 +0000 |
---|---|---|
committer | Paul Irofti <pirofti@cvs.openbsd.org> | 2020-06-22 12:27:55 +0000 |
commit | 9704897acf8c906279f1a029f7dd01ca019de287 (patch) | |
tree | 22c6574eca5e99cf82ccbdbab5816ffeb728760a /sys/arch | |
parent | e3b0cd995cba0e44bd981d40828b0658af55db6d (diff) |
Change tsc_get_timecount return from uint to u_int per sys/timetc.h.
First brought up by naddy@ in the usertc thread, OK kettenis@.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/amd64/tsc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/amd64/amd64/tsc.c b/sys/arch/amd64/amd64/tsc.c index 7a1dcb4ad75..96f60b33782 100644 --- a/sys/arch/amd64/amd64/tsc.c +++ b/sys/arch/amd64/amd64/tsc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tsc.c,v 1.16 2020/04/06 00:01:08 pirofti Exp $ */ +/* $OpenBSD: tsc.c,v 1.17 2020/06/22 12:27:54 pirofti Exp $ */ /* * Copyright (c) 2008 The NetBSD Foundation, Inc. * Copyright (c) 2016,2017 Reyk Floeter <reyk@openbsd.org> @@ -42,7 +42,7 @@ int64_t tsc_drift_observed; volatile int64_t tsc_sync_val; volatile struct cpu_info *tsc_sync_cpu; -uint tsc_get_timecount(struct timecounter *tc); +u_int tsc_get_timecount(struct timecounter *tc); #include "lapic.h" #if NLAPIC > 0 @@ -207,7 +207,7 @@ cpu_recalibrate_tsc(struct timecounter *tc) calibrate_tsc_freq(); } -uint +u_int tsc_get_timecount(struct timecounter *tc) { return rdtsc() + curcpu()->ci_tsc_skew; |