Revert part of 1.19. We do want to set the count to 0 since otherwise

it would give false info to other parts of the driver.
This commit is contained in:
Nate Lawson 2005-04-07 17:33:22 +00:00
parent f86f6ce6e4
commit cb3f3e5c9b

View File

@ -298,12 +298,12 @@ acpi_perf_evaluate(device_t dev)
count++;
}
sc->px_count = count;
/* No valid Px state found. */
/* No valid Px state found so give up. */
if (count == 0)
goto out;
AcpiOsFree(buf.Pointer);
sc->px_count = count;
/* Get the control and status registers (one of each). */
buf.Pointer = NULL;