Don't flood kernel logs with "invalid _PSS package" messages.

Approved by:	njl, imp (mentor)
This commit is contained in:
Bruno Ducrot 2005-12-12 11:15:20 +00:00
parent e9484e32a1
commit f9ead0fcbe

View File

@ -244,6 +244,7 @@ acpi_perf_evaluate(device_t dev)
ACPI_OBJECT *pkg, *res; ACPI_OBJECT *pkg, *res;
ACPI_STATUS status; ACPI_STATUS status;
int count, error, i, j; int count, error, i, j;
static int once = 1;
uint32_t *p; uint32_t *p;
/* Get the control values and parameters for each state. */ /* Get the control values and parameters for each state. */
@ -276,7 +277,10 @@ acpi_perf_evaluate(device_t dev)
for (i = 0; i < sc->px_count; i++) { for (i = 0; i < sc->px_count; i++) {
res = &pkg->Package.Elements[i]; res = &pkg->Package.Elements[i];
if (!ACPI_PKG_VALID(res, 6)) { if (!ACPI_PKG_VALID(res, 6)) {
if (once) {
once = 0;
device_printf(dev, "invalid _PSS package\n"); device_printf(dev, "invalid _PSS package\n");
}
continue; continue;
} }