summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-03-17 21:49:47 +0000
committernjl <njl@FreeBSD.org>2004-03-17 21:49:47 +0000
commit39929fa757939b676054de093fe52ff89284519d (patch)
tree1702d158e266c627d8462f1aa93496db111278d9 /sys
parent0368fc0848bc1e4c83141137e0eba1609a23fede (diff)
downloadFreeBSD-src-39929fa757939b676054de093fe52ff89284519d.zip
FreeBSD-src-39929fa757939b676054de093fe52ff89284519d.tar.gz
Fix border error to allow systems that specify 100 for latency also use
C2 and 1000 to use C3. Submitted by: Bruno Ducrot <ducrot@poupinou.org> Tested by: Scott Lambert <lambert@lambertfam.org>
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/acpica/acpi_cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c
index aacc7f2..ef4f01e 100644
--- a/sys/dev/acpica/acpi_cpu.c
+++ b/sys/dev/acpica/acpi_cpu.c
@@ -464,7 +464,7 @@ acpi_cpu_cx_probe(struct acpi_cpu_softc *sc)
/* Validate and allocate resources for C2 (P_LVL2). */
gas.AddressSpaceId = ACPI_ADR_SPACE_SYSTEM_IO;
gas.RegisterBitWidth = 8;
- if (AcpiGbl_FADT->Plvl2Lat < 100) {
+ if (AcpiGbl_FADT->Plvl2Lat <= 100) {
gas.Address = sc->cpu_p_blk + 4;
cx_ptr->p_lvlx = acpi_bus_alloc_gas(sc->cpu_dev, &cpu_rid, &gas);
if (cx_ptr->p_lvlx != NULL) {
@@ -480,7 +480,7 @@ acpi_cpu_cx_probe(struct acpi_cpu_softc *sc)
goto done;
/* Validate and allocate resources for C3 (P_LVL3). */
- if (AcpiGbl_FADT->Plvl3Lat < 1000 &&
+ if (AcpiGbl_FADT->Plvl3Lat <= 1000 &&
(cpu_quirks & CPU_QUIRK_NO_C3) == 0) {
gas.Address = sc->cpu_p_blk + 5;
OpenPOWER on IntegriCloud