diff options
author | njl <njl@FreeBSD.org> | 2005-04-07 17:33:22 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2005-04-07 17:33:22 +0000 |
commit | 7c5f435fc4a8b39b2a13692d82727151f25dc37c (patch) | |
tree | 1ce4640e7c6eaed648a4404572b9e8cedc1e068c /sys/dev | |
parent | 0add27a8f02cd1cdc8a9314263fcab5dc3d5516b (diff) | |
download | FreeBSD-src-7c5f435fc4a8b39b2a13692d82727151f25dc37c.zip FreeBSD-src-7c5f435fc4a8b39b2a13692d82727151f25dc37c.tar.gz |
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.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/acpica/acpi_perf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_perf.c b/sys/dev/acpica/acpi_perf.c index 38b1a27..19a12d9 100644 --- a/sys/dev/acpica/acpi_perf.c +++ b/sys/dev/acpica/acpi_perf.c @@ -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; |