cvs commit: src/sys/dev/acpica acpi_cpu.c

[ Available lists | Index of cvs-src | Month of Oct 2005 | Week of 25 Oct 2005 | Raw email | View thread | Wrap long lines | Reply ]
From
Nate Lawson <njl@FreeBSD.org>
Date
25 Oct 2005 21:15:47
Subject
cvs commit: src/sys/dev/acpica acpi_cpu.c
Message-ID
200510252115.j9PLFl72055905@repoman.freebsd.org


[ Hide this part ]
njl         2005-10-25 21:15:47 UTC

FreeBSD src repository

Modified files:
sys/dev/acpica acpi_cpu.c
Log:
If we're trying to use C2/3 and reads from the register are returning
immediately, back off to the next higher Cx sleep state. Some machines
with a Via chipset report a valid C3 but a register read doesn't actually
halt the CPU. This would cause the machine to appear unresponsive as it
repeatedly called cpu_idle() which immediately returned. Causing interrupts
(i.e. by pressing the power button) would cause the system to make forward
progress, showing that it wasn't actually hung.

Also, enable interrupts a little earlier. We don't need them disabled
to calculate the delta time for the read.

Reported by: silby
MFC after: 2 weeks

Revision Changes Path
1.59 +24 -3 src/sys/dev/acpica/acpi_cpu.c


Elapsed time: 0.062 seconds