diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2010-12-07 18:15:18 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2010-12-07 18:15:18 +0000 |
commit | 163883fbf950c7232c52cc0115e4ee63061dc9e4 (patch) | |
tree | dd8b48b2d521173c7ac5075d00d8f7a194216f2b /sys | |
parent | 47fed1f114dacbc140a3904e72327686b255b22b (diff) |
Notes
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/tsc.c | 3 | ||||
-rw-r--r-- | sys/i386/i386/tsc.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sys/amd64/amd64/tsc.c b/sys/amd64/amd64/tsc.c index 93264d9875d24..7c237b46d6937 100644 --- a/sys/amd64/amd64/tsc.c +++ b/sys/amd64/amd64/tsc.c @@ -151,6 +151,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; diff --git a/sys/i386/i386/tsc.c b/sys/i386/i386/tsc.c index 95f87f5bcde47..737e8c1a4d5e8 100644 --- a/sys/i386/i386/tsc.c +++ b/sys/i386/i386/tsc.c @@ -170,6 +170,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; |