Re-initialize model-specific MSRs when we resume CPUs.

MFC after:	1 week
This commit is contained in:
jkim 2012-03-30 17:03:06 +00:00
parent 6cd4f25011
commit 95442a8d40
2 changed files with 2 additions and 0 deletions

View File

@ -284,6 +284,7 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state)
} else {
pmap_init_pat();
load_cr3(susppcbs[0]->pcb_cr3);
initializecpu();
PCPU_SET(switchtime, 0);
PCPU_SET(switchticks, ticks);
#ifdef SMP

View File

@ -1425,6 +1425,7 @@ cpususpend_handler(void)
} else {
pmap_init_pat();
load_cr3(susppcbs[cpu]->pcb_cr3);
initializecpu();
PCPU_SET(switchtime, 0);
PCPU_SET(switchticks, ticks);
}