cpufreq: cpu-boost: Add input boost driver
When certain bursty and important events take place, it might take a while for the current cpufreq governor to notice the new load and react to it. That would result in poor user experience. To alleviate this, the cpu-boost driver boosts the frequency of a CPU for at least input_boost_ms duration on incoming input events to maintain good user experience while the governor catches up. This is accomplished by changing the policy->min of all the online cpus to input_boost_freq. Since this driver enforces the boost by hooking into standard cpufreq ADJUST notifiers, it has several advantages: - More portable across kernel versions where the cpufreq internals might have been rewritten. - Governor agnostic and hence works with multiple governors like conservative, ondemand, interactive, etc. - Does not affect the sampling period/logic of existing governors. - Can have the boost period adjusted independent of governor sampling period. Change-Id: Idb0ab75d68ae4ceff259cbbaaec1a9bb3bc871d3 Signed-off-by:Saravana Kannan <skannan@codeaurora.org> Signed-off-by:
Rohit Gupta <rohgup@codeaurora.org> Signed-off-by:
Syed Rameez Mustafa <rameezmustafa@codeaurora.org> Signed-off-by:
Joonwoo Park <joonwoop@codeaurora.org> Signed-off-by:
Stephen Boyd <sboyd@codeaurora.org> [avilaj@codeaurora.org: Change from module_param to sysfs.] Signed-off-by:
Jonathan Avila <avilaj@codeaurora.org>
Loading
Please register or sign in to comment