summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/mp_machdep.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2010-08-13 22:08:42 +0000
committerjkim <jkim@FreeBSD.org>2010-08-13 22:08:42 +0000
commite677a6e72133800e3371572917a0833defd37d06 (patch)
tree9a5a5cb6af6238bbe605fff7dd30d937db123f54 /sys/amd64/amd64/mp_machdep.c
parentfe93fcde05c2eaca0f659de9d00824e896039d21 (diff)
downloadFreeBSD-src-e677a6e72133800e3371572917a0833defd37d06.zip
FreeBSD-src-e677a6e72133800e3371572917a0833defd37d06.tar.gz
Reset switchtime to zero rather than the current CPU ticker (TSC) value.
It is more appropriate in this context because TSC MSR is reset to zero when the CPU is restarted from S3 and above. Move acpi_resync_clock() back to where it was before r211202. It does not make a difference any more.
Diffstat (limited to 'sys/amd64/amd64/mp_machdep.c')
-rw-r--r--sys/amd64/amd64/mp_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c
index 7ea4d7d..034ae77 100644
--- a/sys/amd64/amd64/mp_machdep.c
+++ b/sys/amd64/amd64/mp_machdep.c
@@ -1366,7 +1366,7 @@ cpususpend_handler(void)
wbinvd();
atomic_set_int(&stopped_cpus, cpumask);
} else {
- PCPU_SET(switchtime, cpu_ticks());
+ PCPU_SET(switchtime, 0);
PCPU_SET(switchticks, ticks);
}
OpenPOWER on IntegriCloud