Skip to content

Commit

Permalink
Merge branch 'sultanboost' into m
Browse files Browse the repository at this point in the history
  • Loading branch information
wloot committed Apr 2, 2019
2 parents 62afcd3 + 51a2633 commit 8008625
Show file tree
Hide file tree
Showing 14 changed files with 987 additions and 9 deletions.
7 changes: 6 additions & 1 deletion arch/arm64/configs/chiron_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_INTERACTIVE=y
CONFIG_CPU_BOOST=y
CONFIG_CPU_INPUT_BOOST=y
CONFIG_INPUT_BOOST_DURATION_MS=40
CONFIG_INPUT_BOOST_FREQ_LP=1324800
CONFIG_NET=y
CONFIG_PACKET=y
CONFIG_UNIX=y
Expand Down Expand Up @@ -627,6 +629,9 @@ CONFIG_DEVFREQ_GOV_QCOM_BW_HWMON=y
CONFIG_QCOM_DEVFREQ_DEVBW=y
CONFIG_SPDM_SCM=y
CONFIG_DEVFREQ_SPDM=y
CONFIG_DEVFREQ_BOOST=y
CONFIG_DEVFREQ_INPUT_BOOST_DURATION_MS=64
CONFIG_DEVFREQ_MSM_CPUBW_BOOST_FREQ=4173
CONFIG_EXTCON=y
CONFIG_IIO=y
CONFIG_QCOM_RRADC=y
Expand Down
7 changes: 6 additions & 1 deletion arch/arm64/configs/sagit_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_INTERACTIVE=y
CONFIG_CPU_BOOST=y
CONFIG_CPU_INPUT_BOOST=y
CONFIG_INPUT_BOOST_DURATION_MS=40
CONFIG_INPUT_BOOST_FREQ_LP=1324800
CONFIG_NET=y
CONFIG_PACKET=y
CONFIG_UNIX=y
Expand Down Expand Up @@ -627,6 +629,9 @@ CONFIG_DEVFREQ_GOV_QCOM_BW_HWMON=y
CONFIG_QCOM_DEVFREQ_DEVBW=y
CONFIG_SPDM_SCM=y
CONFIG_DEVFREQ_SPDM=y
CONFIG_DEVFREQ_BOOST=y
CONFIG_DEVFREQ_INPUT_BOOST_DURATION_MS=64
CONFIG_DEVFREQ_MSM_CPUBW_BOOST_FREQ=4173
CONFIG_EXTCON=y
CONFIG_IIO=y
CONFIG_QCOM_RRADC=y
Expand Down
50 changes: 50 additions & 0 deletions drivers/cpufreq/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,56 @@ config CPU_FREQ_GOV_SCHEDUTIL

If in doubt, say N.

config CPU_INPUT_BOOST
bool "CPU Input Boost"
help
Boosts the CPU on touchscreen and touchpad input, and allows for
boosting on other custom events, mainly which is intended to be for
boosting when there is a new frame ready to be rendered to the
display. The boost frequencies for this driver should be set so that
frame drops are near-zero at the boosted frequencies and power
consumption is minimized at said frequency combination.

if CPU_INPUT_BOOST

config INPUT_BOOST_DURATION_MS
int "Input boost duration"
default "100"
help
Input boost duration in milliseconds.

config WAKE_BOOST_DURATION_MS
int "Wake boost duration"
default "1000"
help
Wake boost duration in milliseconds.

config INPUT_BOOST_FREQ_LP
int "Low-power cluster boost freq"
default "0"
help
Input boost frequency for the low-power CPU cluster.

config INPUT_BOOST_FREQ_PERF
int "Performance cluster boost freq"
default "0"
help
Input boost frequency for the performance CPU cluster.

config MAX_BOOST_FREQ_LP
int "Low-power cluster max-boost freq"
default "0"
help
Max-boost frequency for the low-power CPU cluster.

config MAX_BOOST_FREQ_PERF
int "Performance cluster max-boost freq"
default "0"
help
Max-boost frequency for the performance CPU cluster.

endif

comment "CPU frequency scaling drivers"

config CPUFREQ_DT
Expand Down
3 changes: 3 additions & 0 deletions drivers/cpufreq/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ obj-$(CONFIG_CPU_FREQ_GOV_INTERACTIVE) += cpufreq_interactive.o
obj-$(CONFIG_CPU_FREQ_GOV_COMMON) += cpufreq_governor.o
obj-$(CONFIG_CPU_BOOST) += cpu-boost.o

# CPU Input Boost
obj-$(CONFIG_CPU_INPUT_BOOST) += cpu_input_boost.o

obj-$(CONFIG_CPUFREQ_DT) += cpufreq-dt.o

##################################################################################
Expand Down
Loading

0 comments on commit 8008625

Please sign in to comment.