Date: Tue, 15 Jan 2008 15:50:03 GMT From: John Baldwin <jhb@FreeBSD.org> To: freebsd-acpi@FreeBSD.org Subject: Re: kern/108954: [acpi] 'sleep(1)' sleeps > 1 seconds when speedstep (Cx) is in economy mode Message-ID: <200801151550.m0FFo3IP069830@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/108954; it has been noted by GNATS. From: John Baldwin <jhb@FreeBSD.org> To: bug-followup@freebsd.org, huntting@hunkular.glarp.com Cc: Subject: Re: kern/108954: [acpi] 'sleep(1)' sleeps >1 seconds when speedstep (Cx) is in economy mode Date: Tue, 15 Jan 2008 10:18:30 -0500 The problem as Bruce indicated is that some CPUs turn off the lapic timer when entering C3 so the CPU stays asleep until the next device interrupt. Your CPU isn't any slower during C3 though. That is a separate facility. You can try using C2 to see if that works ok as it may not power off your lapic timer. One possible fix (but a bit of work) would be to schedule one of the HPET comparators to fire the next lapic timer interrupt before going into C3. Even better is to stop doing periodic interrupts altogether and instead doing deadline interrupts via the HPET but that is a much larger piece of work. Also, more recent 6.x should work fine with suspend/resume with 'device apic' for the non-SMP case now. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801151550.m0FFo3IP069830>