From de66a2d7daa7f2ba7c942fb43cd0864c383895cc Mon Sep 17 00:00:00 2001 From: njl Date: Fri, 4 Mar 2005 05:29:56 +0000 Subject: Check for some impossible frequencies that some systems use to indicate they don't actually support Px states. --- sys/dev/acpica/acpi_perf.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sys/dev/acpica/acpi_perf.c b/sys/dev/acpica/acpi_perf.c index ab17a56..629f036 100644 --- a/sys/dev/acpica/acpi_perf.c +++ b/sys/dev/acpica/acpi_perf.c @@ -273,7 +273,16 @@ acpi_perf_evaluate(device_t dev) device_printf(dev, "invalid _PSS package\n"); continue; } + + /* + * Check for some impossible frequencies that some systems + * use to indicate they don't actually support Px states. + */ p = &sc->px_states[i].core_freq; + if (*p == 9999 || *p == 0xffff) + goto out; + + /* Parse the rest of the package into the struct. */ for (j = 0; j < 6; j++, p++) acpi_PkgInt32(res, j, p); } -- cgit v1.1