summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/mp_machdep.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2010-11-23 16:12:35 +0000
committerjkim <jkim@FreeBSD.org>2010-11-23 16:12:35 +0000
commitf7107036f83abb9f2e1630b64514a0bdd1073b62 (patch)
tree1097aa6257ca7d5a45f326f59fe0dc3104d6574b /sys/amd64/amd64/mp_machdep.c
parent89c3fe1b1508684aa023a875bc977a7adb695e0d (diff)
downloadFreeBSD-src-f7107036f83abb9f2e1630b64514a0bdd1073b62.zip
FreeBSD-src-f7107036f83abb9f2e1630b64514a0bdd1073b62.tar.gz
Reinitialize PAT MSR via pmap_init_pat() while resuming. This function does
better job since r215703 and it is safer now.
Diffstat (limited to 'sys/amd64/amd64/mp_machdep.c')
-rw-r--r--sys/amd64/amd64/mp_machdep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c
index 07380ff..2e85d5f 100644
--- a/sys/amd64/amd64/mp_machdep.c
+++ b/sys/amd64/amd64/mp_machdep.c
@@ -1410,6 +1410,7 @@ cpususpend_handler(void)
wbinvd();
atomic_set_int(&stopped_cpus, cpumask);
} else {
+ pmap_init_pat();
PCPU_SET(switchtime, 0);
PCPU_SET(switchticks, ticks);
}
OpenPOWER on IntegriCloud