Skip to content

Commit c0b7f8b

Browse files
committed
Stop assuming intel model 0x55 'Skylake X' has a fixed 25 MHz tsc freq.
It turns out the frequency can vary between different processors that share the same cpuid model. Similiar change made in linux. ok mikeb@ millert@
1 parent b90bb40 commit c0b7f8b

File tree

1 file changed

+1
-2
lines changed
  • sys/arch/amd64/amd64

1 file changed

+1
-2
lines changed

sys/arch/amd64/amd64/tsc.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: tsc.c,v 1.6 2017/10/19 22:09:49 mikeb Exp $ */
1+
/* $OpenBSD: tsc.c,v 1.7 2018/03/07 01:33:07 jsg Exp $ */
22
/*
33
* Copyright (c) 2016,2017 Reyk Floeter <[email protected]>
44
* Copyright (c) 2017 Adam Steen <[email protected]>
@@ -58,7 +58,6 @@ tsc_freq_cpuid(struct cpu_info *ci)
5858
case 0x9e: /* Kabylake desktop */
5959
khz = 24000; /* 24.0 Mhz */
6060
break;
61-
case 0x55: /* Skylake X */
6261
case 0x5f: /* Atom Denverton */
6362
khz = 25000; /* 25.0 Mhz */
6463
break;

0 commit comments

Comments
 (0)