From 27a9a04e8570c6d0eddb40b6857bbb1376a4a923 Mon Sep 17 00:00:00 2001 From: jkim Date: Fri, 3 Dec 2010 21:06:30 +0000 Subject: Do not change CPU ticker frequency if TSC is P-state invariant. Note this change was meant to be committed with r184102 (and its subsequent MFCs) but it fell off somehow. Pointyhat to: jkim MFC after: 3 days --- sys/i386/i386/tsc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/i386') diff --git a/sys/i386/i386/tsc.c b/sys/i386/i386/tsc.c index 882b442..185f240 100644 --- a/sys/i386/i386/tsc.c +++ b/sys/i386/i386/tsc.c @@ -174,6 +174,9 @@ tsc_levels_changed(void *arg, int unit) int count, error; uint64_t max_freq; + if (tsc_is_invariant) + return; + /* Only use values from the first CPU, assuming all are equal. */ if (unit != 0) return; -- cgit v1.1