summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>2001-07-07 18:39:13 +0000
committeriwasaki <iwasaki@FreeBSD.org>2001-07-07 18:39:13 +0000
commiteef64272414b079b9d81d336f743738a89336856 (patch)
tree72c2252e9bfe616ab03aeb7fa40b08a9fcfe8fc4 /sys/dev/acpica
parent179c7b66e35b08a7d6a93e6c08f0b96e4e2c0e20 (diff)
downloadFreeBSD-src-eef64272414b079b9d81d336f743738a89336856.zip
FreeBSD-src-eef64272414b079b9d81d336f743738a89336856.tar.gz
Fix typo in acpi_cpu_attach() and correct range checking in
acpi_cpu_speed_sysctl().
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r--sys/dev/acpica/acpi_cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c
index 0a6c6f3..f37815d 100644
--- a/sys/dev/acpica/acpi_cpu.c
+++ b/sys/dev/acpica/acpi_cpu.c
@@ -247,7 +247,7 @@ acpi_cpu_attach(device_t dev)
DEBUG_PRINT(TRACE_IO, ("acpi_cpu%d: throttling with P_BLK at 0x%x/%d%s\n",
device_get_unit(sc->cpu_dev), p_blk, p_blk_length,
- sc->cpu_p_blk ? "" : " (shadowed)");
+ sc->cpu_p_blk ? "" : " (shadowed)"));
}
}
return_VALUE(0);
@@ -377,7 +377,7 @@ acpi_cpu_speed_sysctl(SYSCTL_HANDLER_ARGS)
return(error);
/* range check */
- if ((arg < 1) || (arg >= cpu_max_state))
+ if ((arg < 1) || (arg > cpu_max_state))
return(EINVAL);
/* set new value and possibly switch */
OpenPOWER on IntegriCloud