diff options
author | njl <njl@FreeBSD.org> | 2005-02-13 05:25:27 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2005-02-13 05:25:27 +0000 |
commit | 5b155d6843a2af911a7bb288fce45d486d142169 (patch) | |
tree | 9c3fed74210e60b8cde1472487345a14667cc5a6 /sys/dev/acpica/acpi_perf.c | |
parent | 9ad2a7ae391f1cf69fea8aa11d9fe1c3ed910c10 (diff) | |
download | FreeBSD-src-5b155d6843a2af911a7bb288fce45d486d142169.zip FreeBSD-src-5b155d6843a2af911a7bb288fce45d486d142169.tar.gz |
Attach an acpi_perf device for every processor that offers the right
methods.
Diffstat (limited to 'sys/dev/acpica/acpi_perf.c')
-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 259f68b..bc4eb78 100644 --- a/sys/dev/acpica/acpi_perf.c +++ b/sys/dev/acpica/acpi_perf.c @@ -136,7 +136,7 @@ acpi_perf_identify(driver_t *driver, device_t parent) ACPI_HANDLE handle; /* Make sure we're not being doubly invoked. */ - if (device_find_child(parent, "acpi_perf", 0) != NULL) + if (device_find_child(parent, "acpi_perf", -1) != NULL) return; /* Get the handle for the Processor object and check for perf states. */ @@ -145,7 +145,7 @@ acpi_perf_identify(driver_t *driver, device_t parent) return; if (ACPI_FAILURE(AcpiEvaluateObject(handle, "_PSS", NULL, NULL))) return; - if (BUS_ADD_CHILD(parent, 0, "acpi_perf", 0) == NULL) + if (BUS_ADD_CHILD(parent, 0, "acpi_perf", -1) == NULL) device_printf(parent, "add acpi_perf child failed\n"); } |