cpufreq: schedutil: Expose default rate-limits as config options
This allows us to tune the default rate-limits without constantly changing schedutil's code. Signed-off-by: Danny Lin <danny@kdrag0n.dev> Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
This commit is contained in:
committed by
UtsavBalar1231
parent
363f5923d5
commit
8e639c1f3f
@@ -230,6 +230,24 @@ config CPU_FREQ_GOV_SCHEDUTIL
|
||||
|
||||
If in doubt, say N.
|
||||
|
||||
if CPU_FREQ_GOV_SCHEDUTIL
|
||||
|
||||
config SCHEDUTIL_UP_RATE_LIMIT
|
||||
int "Default up rate-limit for schedutil"
|
||||
default 1000
|
||||
help
|
||||
This sets schedutil's default frequency up rate-limit in
|
||||
microseconds.
|
||||
|
||||
config SCHEDUTIL_DOWN_RATE_LIMIT
|
||||
int "Default down rate-limit for schedutil"
|
||||
default 1000
|
||||
help
|
||||
This sets schedutil's default frequency down rate-limit in
|
||||
microseconds.
|
||||
|
||||
endif
|
||||
|
||||
config CPU_FREQ_GOV_INTERACTIVE
|
||||
tristate "'interactive' cpufreq policy governor"
|
||||
depends on CPU_FREQ
|
||||
|
||||
@@ -1048,9 +1048,9 @@ static int sugov_init(struct cpufreq_policy *policy)
|
||||
}
|
||||
|
||||
tunables->up_rate_limit_us =
|
||||
cpufreq_policy_transition_delay_us(policy);
|
||||
CONFIG_SCHEDUTIL_UP_RATE_LIMIT;
|
||||
tunables->down_rate_limit_us =
|
||||
cpufreq_policy_transition_delay_us(policy);
|
||||
CONFIG_SCHEDUTIL_DOWN_RATE_LIMIT;
|
||||
tunables->hispeed_load = DEFAULT_HISPEED_LOAD;
|
||||
tunables->hispeed_freq = 0;
|
||||
tunables->iowait_boost_enable = false;
|
||||
|
||||
Reference in New Issue
Block a user