Implement SmartassV2 with tunables in Kconfig
/drivers/cpufreq/Kconfig
blob:49e311e8d1bd213b19b26e41fd0aefb6ad5ff7c8 -> blob:121ac55f1f0511a5c37bd1b3cc5faf372c7cbd9e
--- drivers/cpufreq/Kconfig
+++ drivers/cpufreq/Kconfig
@@ -17,6 +17,44 @@ config CPU_FREQ
if CPU_FREQ
+if ARCH_MSM
+
+config CPU_FREQ_MIN_SCALING_LIMIT
+ int "Min CPU Scaling Frequency Limit"
+ depends on CPU_FREQ
+ default 384000
+
+config CPU_FREQ_MAX_SCALING_LIMIT
+ int "Max CPU Scaling Frequency Limit"
+ depends on CPU_FREQ
+ default 1900000
+
+config MSM_VMIN
+ int "VMIN used for acpuclock"
+ default 900000
+ depends on CPU_FREQ
+
+config CPU_FREQ_MAX_VDD_SC
+ int "Max CPU VDD SC uV"
+ depends on CPU_FREQ
+ default 1400000
+
+config CPU_FREQ_MIN_VDD_SC
+ int "Min CPU VDD SC uV"
+ depends on CPU_FREQ
+ default 850000
+
+config CPU_FREQ_MSM_DCVS_CPU1_DELAY
+ int "Delay prior to initializing dcvs for cpu1 (ms)"
+ depends on CPU_FREQ
+ default 1000
+ help
+ The MSM-DCVS governor sometimes does not register
+ the second cpu, cpu1, correctly. This delay gives
+ cpu1 additional time to become ready prior to registering
+
+endif
+
config CPU_FREQ_TABLE
tristate
@@ -123,7 +161,7 @@ config CPU_FREQ_DEFAULT_GOV_INTERACTIVE
'interactive' governor for latency-sensitive workloads.
config CPU_FREQ_DEFAULT_GOV_SMARTASSV2
- bool "smartass2"
+ bool "smartassv2"
select CPU_FREQ_GOV_SMARTASSV2
help
Use the CPUFreq governor 'smartassV2' as default.
@@ -284,18 +322,18 @@ config CPU_FREQ_GOV_SMARTASSV2
'smartassV2' - a "smart" governor
If in doubt, say N.
-config SMARTASSV2_SLEEP_IDEAL_FREQ
+config SMARTASSV2_AWAKE_IDEAL_FREQ
int "The ideal frequency to use when awake."
- default 768000
+ default 1026000
depends on CPU_FREQ_GOV_SMARTASSV2
help
The "ideal" frequency to use when awake. The governor will ramp up faster
towards the ideal frequency and slower after it has passed it. Similarly,
lowering the frequency towards the ideal frequency is faster than below it.
-config SMARTASSV2_AWAKE_IDEAL_FREQ
+config SMARTASSV2_SLEEP_IDEAL_FREQ
int "The ideal frequency to use when suspended."
- default 192000
+ default 0
depends on CPU_FREQ_GOV_SMARTASSV2
help
The "ideal" frequency to use when suspended.