diff options
| author | Mike Smith <msmith@FreeBSD.org> | 2002-01-02 10:53:10 +0000 |
|---|---|---|
| committer | Mike Smith <msmith@FreeBSD.org> | 2002-01-02 10:53:10 +0000 |
| commit | 3e759f36810131159d3b431a39321892a7e5d167 (patch) | |
| tree | b14131eeb5b37a930919565e6d182c65d5d2e96c /sys/dev | |
| parent | 283004853b919c5e2174523191e0bf75d388544e (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/acpica/acpi_cpu.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c index 887a97ccafff..51e976828124 100644 --- a/sys/dev/acpica/acpi_cpu.c +++ b/sys/dev/acpica/acpi_cpu.c @@ -161,16 +161,18 @@ acpi_cpu_attach(device_t dev) cpu_pstate_cnt = AcpiGbl_FADT->PstateCnt; /* validate the offset/width */ - duty_end = cpu_duty_offset + cpu_duty_width - 1; - /* check that it fits */ - if (duty_end > 31) { - printf("acpi_cpu: CLK_VAL field overflows P_CNT register\n"); - cpu_duty_width = 0; - } - /* check for overlap with the THT_EN bit */ - if ((cpu_duty_offset <= 4) && (duty_end >= 4)) { - printf("acpi_cpu: CLK_VAL field overlaps THT_EN bit\n"); - cpu_duty_width = 0; + if (cpu_duty_width > 0) { + duty_end = cpu_duty_offset + cpu_duty_width - 1; + /* check that it fits */ + if (duty_end > 31) { + printf("acpi_cpu: CLK_VAL field overflows P_CNT register\n"); + cpu_duty_width = 0; + } + /* check for overlap with the THT_EN bit */ + if ((cpu_duty_offset <= 4) && (duty_end >= 4)) { + printf("acpi_cpu: CLK_VAL field overlaps THT_EN bit\n"); + cpu_duty_width = 0; + } } /* |
