diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2017-10-19 22:09:50 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2017-10-19 22:09:50 +0000 |
commit | ad3879116088e08d2d8dc4a38817127cc6090ee8 (patch) | |
tree | a79d241eb2148cd18e75ccd7e27c401936d9b3aa | |
parent | e97f2b7dc4d3cfbc51a27c8404baf56a58641530 (diff) |
Don't forget to set the timecounter frequency
Found the hard way, fix tested and OK mlarkin
-rw-r--r-- | sys/arch/amd64/amd64/tsc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/tsc.c b/sys/arch/amd64/amd64/tsc.c index f3fd2554cf9..466e4659e85 100644 --- a/sys/arch/amd64/amd64/tsc.c +++ b/sys/arch/amd64/amd64/tsc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tsc.c,v 1.5 2017/10/18 15:26:05 mikeb Exp $ */ +/* $OpenBSD: tsc.c,v 1.6 2017/10/19 22:09:49 mikeb Exp $ */ /* * Copyright (c) 2016,2017 Reyk Floeter <reyk@openbsd.org> * Copyright (c) 2017 Adam Steen <adam@adamsteen.com.au> @@ -218,6 +218,7 @@ tsc_timecounter_init(struct cpu_info *ci, uint64_t cpufreq) } else { tsc_recalibrate = 1; tsc_frequency = cpufreq; + tsc_timecounter.tc_frequency = cpufreq; calibrate_tsc_freq(); } |