Don't attach throttling if the P_BLK is 0, even if the P_BLK_LEN is 6.

This is more strict but no known systems have this problem.
This commit is contained in:
Nate Lawson 2003-12-28 22:15:24 +00:00
parent 6162a5f91a
commit 5016979369
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123942

View file

@ -395,7 +395,7 @@ acpi_cpu_throttle_probe(struct acpi_cpu_softc *sc)
/* If _PTC not present or other failure, try the P_BLK. */
if (sc->cpu_p_cnt == NULL) {
/* The spec says P_BLK must be at least 6 bytes long. */
if (sc->cpu_p_blk_len != 6)
if (sc->cpu_p_blk == 0 || sc->cpu_p_blk_len != 6)
return (ENXIO);
gas.Address = sc->cpu_p_blk;
gas.AddressSpaceId = ACPI_ADR_SPACE_SYSTEM_IO;