From e5ada020f180e7f5928cf76ef9835601d956aae7 Mon Sep 17 00:00:00 2001 From: Nate Lawson Date: Wed, 17 Mar 2004 21:49:47 +0000 Subject: [PATCH] Fix border error to allow systems that specify 100 for latency also use C2 and 1000 to use C3. Submitted by: Bruno Ducrot Tested by: Scott Lambert --- sys/dev/acpica/acpi_cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c index aacc7f2e9ae9..ef4f01e3cac4 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;