Date: Thu, 14 Apr 2011 17:50:26 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/x86/x86 tsc.c Message-ID: <201104141750.p3EHomwB087250@repoman.freebsd.org>
index | next in thread | raw e-mail
jkim 2011-04-14 17:50:26 UTC
FreeBSD src repository
Modified files:
sys/x86/x86 tsc.c
Log:
SVN rev 220637 on 2011-04-14 17:50:26Z by jkim
Work around an emulator problem where virtual CPU advertises TSC is P-state
invariant and APERF/MPERF MSRs exist but these MSRs never tick. When we
calculate effective frequency from cpu_est_clockrate(), it caused panic of
division-by-zero. Now we test whether these MSRs actually increase to avoid
such foot-shooting.
Reported by: dim
Tested by: dim
Revision Changes Path
1.15 +12 -2 src/sys/x86/x86/tsc.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104141750.p3EHomwB087250>
