aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Lawson <njl@FreeBSD.org>2005-08-11 18:40:58 +0000
committerNate Lawson <njl@FreeBSD.org>2005-08-11 18:40:58 +0000
commitda8a77c1f1746ef6e55c8dd1930e7c1e4567fd1a (patch)
tree7011b46d1b021782cbd4aa286696a1a31bde9a85
parentb69dd0fda63639c95dfe9fcbdff648a2efab51ce (diff)
Notes
-rw-r--r--sys/kern/kern_cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_cpu.c b/sys/kern/kern_cpu.c
index f9a541dcf8e7..be7fce996dde 100644
--- a/sys/kern/kern_cpu.c
+++ b/sys/kern/kern_cpu.c
@@ -249,7 +249,7 @@ cf_set_method(device_t dev, const struct cf_level *level, int priority)
}
/* Reject levels that are below our specified threshold. */
- if (level->total_set.freq <= cf_lowest_freq) {
+ if (level->total_set.freq < cf_lowest_freq) {
CF_DEBUG("rejecting freq %d, less than %d limit\n",
level->total_set.freq, cf_lowest_freq);
error = EINVAL;
@@ -566,7 +566,7 @@ cf_levels_method(device_t dev, struct cf_level *levels, int *count)
i = 0;
TAILQ_FOREACH(lev, &sc->all_levels, link) {
/* Skip levels that have a frequency that is too low. */
- if (lev->total_set.freq <= cf_lowest_freq) {
+ if (lev->total_set.freq < cf_lowest_freq) {
sc->all_count--;
continue;
}