Semi-working patch for amd64 suspend/resume
Alexander Motin
mav at FreeBSD.org
Tue Dec 2 13:37:29 PST 2008
John Baldwin wrote:
> Oh, it's getting a new counter on each resume. That is a bug. Ah, I think
> the AP's are using lapic_setup(1) when they should be using lapic_setup(0)
> during a resume.
Thanks. With this LAPIC works better:
--- mp_machdep.c.prev2 2008-12-02 23:33:10.000000000 +0200
+++ mp_machdep.c 2008-12-02 23:26:23.000000000 +0200
@@ -1127,7 +1127,7 @@ cpususpend_handler(void)
atomic_set_int(&stopped_cpus, cpumask);
} else {
/* Set up local APIC again. */
- lapic_setup(1);
+ lapic_setup(0);
}
while (!(started_cpus & cpumask))
But statistic problem is still here:
# ps ax
PID TT STAT TIME COMMAND
1429 ?? Ss 282031:03,98 icewm
--
Alexander Motin
More information about the freebsd-amd64
mailing list