diff options
author | Nate Lawson <njl@FreeBSD.org> | 2005-03-04 05:29:56 +0000 |
---|---|---|
committer | Nate Lawson <njl@FreeBSD.org> | 2005-03-04 05:29:56 +0000 |
commit | 0716d65cef37ee37a003a75246d194068541fddf (patch) | |
tree | 4e83f2995cd406a55988dc09b001d2e857c79151 /sys/dev/acpica/acpi_perf.c | |
parent | 0626b13a162493c490386fa15055452d054bcb30 (diff) |
Check for some impossible frequencies that some systems use to indicate
they don't actually support Px states.
Notes
Notes:
svn path=/head/; revision=143119
Diffstat (limited to 'sys/dev/acpica/acpi_perf.c')
-rw-r--r-- | sys/dev/acpica/acpi_perf.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_perf.c b/sys/dev/acpica/acpi_perf.c index ab17a561caef..629f036434b0 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); } |