diff options
author | njl <njl@FreeBSD.org> | 2005-02-07 04:03:06 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2005-02-07 04:03:06 +0000 |
commit | cea0f165287b23cf9191e08758f9dcd9c9a68722 (patch) | |
tree | 7d75b848c043900b2ee4bcaba9000c1e323baacf /sys/dev/acpica/acpi_perf.c | |
parent | 885a9694bc1a30c0841c38f6367dc1cf43e219ee (diff) | |
download | FreeBSD-src-cea0f165287b23cf9191e08758f9dcd9c9a68722.zip FreeBSD-src-cea0f165287b23cf9191e08758f9dcd9c9a68722.tar.gz |
Remove handling _PSS notifies from acpi_cpu and let acpi_perf handle them.
Diffstat (limited to 'sys/dev/acpica/acpi_perf.c')
-rw-r--r-- | sys/dev/acpica/acpi_perf.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_perf.c b/sys/dev/acpica/acpi_perf.c index b8cd3d7..259f68b 100644 --- a/sys/dev/acpica/acpi_perf.c +++ b/sys/dev/acpica/acpi_perf.c @@ -87,6 +87,8 @@ struct acpi_perf_softc { (bus_space_write_4(rman_get_bustag((reg)), \ rman_get_bushandle((reg)), 0, (val))) +#define ACPI_NOTIFY_PERF_STATES 0x80 /* _PSS changed. */ + static void acpi_perf_identify(driver_t *driver, device_t parent); static int acpi_perf_probe(device_t dev); static int acpi_perf_attach(device_t dev); @@ -144,7 +146,7 @@ acpi_perf_identify(driver_t *driver, device_t parent) if (ACPI_FAILURE(AcpiEvaluateObject(handle, "_PSS", NULL, NULL))) return; if (BUS_ADD_CHILD(parent, 0, "acpi_perf", 0) == NULL) - device_printf(parent, "acpi_perf: add child failed\n"); + device_printf(parent, "add acpi_perf child failed\n"); } static int @@ -322,6 +324,9 @@ acpi_px_notify(ACPI_HANDLE h, UINT32 notify, void *context) struct acpi_perf_softc *sc; sc = context; + if (notify != ACPI_NOTIFY_PERF_STATES) + return; + acpi_px_available(sc); /* TODO: Implement notification when frequency changes. */ |