]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: conservative: Allow down_threshold to take values from 1 to 10
authorTomasz Wilczyński <twilczynski@naver.com>
Sun, 11 Jun 2017 08:28:39 +0000 (17:28 +0900)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 12 Jun 2017 12:28:07 +0000 (14:28 +0200)
commit21684a624ca5ef6e54ded0a61c40779205bece88
treee5d15a477441c40a616138f73dd108d7bcb02678
parent97d0ea0b953e9c65da3da511c7b6a69fed990fae
cpufreq: conservative: Allow down_threshold to take values from 1 to 10

Commit 62ca28bcd967 (cpufreq: conservative: Fix the logic in frequency
decrease checking) removed the 10 point substraction when comparing the
load against down_threshold but did not remove the related limit for the
down_threshold value.  As a result, down_threshold lower than 11 is not
allowed even though values from 1 to 10 do work correctly too. The
comment ("cannot be lower than 11 otherwise freq will not fall") also
does not apply after removing the substraction.

For this reason, allow down_threshold to take any value from 1 to 99
and fix the related comment.

Fixes: 62ca28bcd967 (cpufreq: conservative: Fix the logic in frequency decrease checking)
Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: 3.10+ <stable@vger.kernel.org> # 3.10+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq_conservative.c