diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2012-06-10 02:38:51 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2012-06-10 02:38:51 +0000 |
commit | efecd13fd03d30a5c13228ca80178cfec8d65996 (patch) | |
tree | d6652252837a4d8b717fa093dd34430a5edfeb02 /sys/amd64/amd64/mp_machdep.c | |
parent | 604fef60a73f1b747d3a773bbf9822a6a505d85d (diff) | |
download | FreeBSD-src-efecd13fd03d30a5c13228ca80178cfec8d65996.zip FreeBSD-src-efecd13fd03d30a5c13228ca80178cfec8d65996.tar.gz |
Some fixes for r236772.
- Remove cpuset stopped_cpus which is no longer used.
- Add a short comment for cpuset suspended_cpus clearing.
- Fix the un-ordered x86/acpica/acpi_wakeup.c in conf/files.amd64 and i386.
Pointed-out by: attilio@
Diffstat (limited to 'sys/amd64/amd64/mp_machdep.c')
-rw-r--r-- | sys/amd64/amd64/mp_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c index 903163e..8cce304 100644 --- a/sys/amd64/amd64/mp_machdep.c +++ b/sys/amd64/amd64/mp_machdep.c @@ -1416,7 +1416,6 @@ cpususpend_handler(void) if (savectx(susppcbs[cpu])) { ctx_fpusave(susppcbs[cpu]->pcb_fpususpend); wbinvd(); - CPU_SET_ATOMIC(cpu, &stopped_cpus); CPU_SET_ATOMIC(cpu, &suspended_cpus); } else { pmap_init_pat(); @@ -1426,6 +1425,8 @@ cpususpend_handler(void) initializecpu(); PCPU_SET(switchtime, 0); PCPU_SET(switchticks, ticks); + + /* Indicate that we are resumed */ CPU_CLR_ATOMIC(cpu, &suspended_cpus); } @@ -1434,7 +1435,6 @@ cpususpend_handler(void) ia32_pause(); CPU_CLR_ATOMIC(cpu, &started_cpus); - CPU_CLR_ATOMIC(cpu, &stopped_cpus); /* Resume MCA and local APIC */ mca_resume(); |