diff options
| author | Jeff Garzik <jeff@garzik.org> | 2006-04-20 18:36:05 -0400 | 
|---|---|---|
| committer | Jeff Garzik <jeff@garzik.org> | 2006-04-20 18:36:05 -0400 | 
| commit | 857c68f733eea07f11a061caea43a38fed61adb7 (patch) | |
| tree | 4567a9e91f717b22143ac1ccb0fb5323ac15afd3 /drivers/cpufreq/cpufreq_conservative.c | |
| parent | 4741c336d27dec3ea68a35659abb8dc82b142388 (diff) | |
| parent | 402a26f0c040077ed6f941eefac5a6971f0d5f40 (diff) | |
Merge branch 'master'
Diffstat (limited to 'drivers/cpufreq/cpufreq_conservative.c')
| -rw-r--r-- | drivers/cpufreq/cpufreq_conservative.c | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c index 037f6bf4543c..e07a35487bde 100644 --- a/drivers/cpufreq/cpufreq_conservative.c +++ b/drivers/cpufreq/cpufreq_conservative.c  | |||
| @@ -176,8 +176,7 @@ static ssize_t store_up_threshold(struct cpufreq_policy *unused, | |||
| 176 | ret = sscanf (buf, "%u", &input); | 176 | ret = sscanf (buf, "%u", &input); | 
| 177 | 177 | ||
| 178 | mutex_lock(&dbs_mutex); | 178 | mutex_lock(&dbs_mutex); | 
| 179 | if (ret != 1 || input > 100 || input < 0 || | 179 | if (ret != 1 || input > 100 || input <= dbs_tuners_ins.down_threshold) { | 
| 180 | input <= dbs_tuners_ins.down_threshold) { | ||
| 181 | mutex_unlock(&dbs_mutex); | 180 | mutex_unlock(&dbs_mutex); | 
| 182 | return -EINVAL; | 181 | return -EINVAL; | 
| 183 | } | 182 | } | 
| @@ -196,8 +195,7 @@ static ssize_t store_down_threshold(struct cpufreq_policy *unused, | |||
| 196 | ret = sscanf (buf, "%u", &input); | 195 | ret = sscanf (buf, "%u", &input); | 
| 197 | 196 | ||
| 198 | mutex_lock(&dbs_mutex); | 197 | mutex_lock(&dbs_mutex); | 
| 199 | if (ret != 1 || input > 100 || input < 0 || | 198 | if (ret != 1 || input > 100 || input >= dbs_tuners_ins.up_threshold) { | 
| 200 | input >= dbs_tuners_ins.up_threshold) { | ||
| 201 | mutex_unlock(&dbs_mutex); | 199 | mutex_unlock(&dbs_mutex); | 
| 202 | return -EINVAL; | 200 | return -EINVAL; | 
| 203 | } | 201 | } | 
