cpufreq: conservative: Simplify the condition of storing 'down_threshold'
authorLiao Chang <liaochang1@huawei.com>
Tue, 12 Sep 2023 06:09:42 +0000 (06:09 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 6 Oct 2023 19:55:13 +0000 (21:55 +0200)
commit842c34a2668f68ebe15d0fc9dc19d33733bb428d
tree04d971ddea9b1cb959781ea40306350c7af7c23f
parent16a03c71bba012b4cc31f34e00007c34ef5a58df
cpufreq: conservative: Simplify the condition of storing 'down_threshold'

The governor currently checks if the input new down_threshold is less
than 100 before storing it, but the up_threshold field of dbs_data
structure is also limited to be less than 100, so this check is
unnecessary and remove it.

Signed-off-by: Liao Chang <liaochang1@huawei.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq_conservative.c