Implement SmartassV2 with tunables in Kconfig
/drivers/cpufreq/Kconfig
blob:49e311e8d1bd213b19b26e41fd0aefb6ad5ff7c8 -> blob:5ca4726eb98ef1761adcbb21a82532686a846d4b
--- drivers/cpufreq/Kconfig
+++ drivers/cpufreq/Kconfig
@@ -122,12 +122,6 @@ config CPU_FREQ_DEFAULT_GOV_INTERACTIVE
loading your cpufreq low-level hardware driver, using the
'interactive' governor for latency-sensitive workloads.
-config CPU_FREQ_DEFAULT_GOV_SMARTASSV2
- bool "smartass2"
- select CPU_FREQ_GOV_SMARTASSV2
- help
- Use the CPUFreq governor 'smartassV2' as default.
-
endchoice
config CPU_FREQ_GOV_PERFORMANCE
@@ -276,95 +270,6 @@ config LAGFREE_FREQ_STEP_UP_SLEEP_PERCEN
depends on CPU_FREQ_GOV_LAGFREE
help
Frequency percent to step up while screen off.
-
-config CPU_FREQ_GOV_SMARTASSV2
- tristate "'smartassV2' cpufreq governor"
- depends on CPU_FREQ
- help
- 'smartassV2' - a "smart" governor
- If in doubt, say N.
-
-config SMARTASSV2_SLEEP_IDEAL_FREQ
- int "The ideal frequency to use when awake."
- default 768000
- 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
- int "The ideal frequency to use when suspended."
- default 192000
- depends on CPU_FREQ_GOV_SMARTASSV2
- help
- The "ideal" frequency to use when suspended.
- When set to 0, the governor will not track the suspended state (meaning
- that practically when sleep_ideal_freq==0 the awake_ideal_freq is used
- also when suspended).
-
-config SMARTASSV2_RAMP_UP_STEP
- int "Freqeuncy delta when ramping up above the ideal freqeuncy."
- default 256000
- depends on CPU_FREQ_GOV_SMARTASSV2
- help
- Freqeuncy delta when ramping up above the ideal freqeuncy.
- Zero disables and causes to always jump straight to max frequency.
- When below the ideal freqeuncy we always ramp up to the ideal freq.
-
-config SMARTASSV2_RAMP_DOWN_STEP
- int "Freqeuncy delta when ramping down below the ideal freqeuncy."
- default 256000
- depends on CPU_FREQ_GOV_SMARTASSV2
- help
- Freqeuncy delta when ramping down below the ideal freqeuncy.
- Zero disables and will calculate ramp down according to load heuristic.
- When above the ideal freqeuncy we always ramp down to the ideal freq.
-
-config SMARTASSV2_MAX_CPU_LOAD
- int "CPU freq will be increased if measured load > max_cpu_load."
- default 50
- depends on CPU_FREQ_GOV_SMARTASSV2
- help
- CPU freq will be increased if measured load > max_cpu_load.
-
-config SMARTASSV2_MIN_CPU_LOAD
- int "CPU freq will be decreased if measured load < max_cpu_load."
- default 25
- depends on CPU_FREQ_GOV_SMARTASSV2
- help
- CPU freq will be decreased if measured load < max_cpu_load.
-
-config SMARTASSV2_UP_RATE_US
- int "The minimum amount of time to spend at a frequency before we can ramp up."
- default 48000
- depends on CPU_FREQ_GOV_SMARTASSV2
- help
- The minimum amount of time to spend at a frequency before we can ramp up.
- Notice we ignore this when we are below the ideal frequency.
-
-config SMARTASSV2_DOWN_RATE_US
- int "The minimum amount of time to spend at a frequency before we can ramp down."
- default 99000
- depends on CPU_FREQ_GOV_SMARTASSV2
- help
- The minimum amount of time to spend at a frequency before we can ramp down.
- Notice we ignore this when we are below the ideal frequency.
-
-config SMARTASSV2_SLEEP_WAKEUP_FREQ
- int "The frequency to set when waking up from sleep."
- default 99999999
- depends on CPU_FREQ_GOV_SMARTASSV2
- help
- The frequency to set when waking up from sleep.
- When sleep_ideal_freq=0 this will have no effect.
-
-config SMARTASSV2_SAMPLE_RATE_JIFFIES
- int "Sampling rate."
- default 2
- depends on CPU_FREQ_GOV_SMARTASSV2
- help
- Sampling rate, I highly recommend to leave it at 2.
config CPU_FREQ_MIN_TICKS
int "Ticks between governor polling interval."
@@ -384,14 +289,6 @@ config SEC_DVFS
default n
depends on CPU_FREQ
-config VDD_USERSPACE
- bool "VDD sysfs interface"
- default n
- depends on CPU_FREQ_STAT
- help
- exposes the VDD table to userspace
- allows users to adjust voltages on the fly
-
menu "x86 CPU frequency scaling drivers"
depends on X86
source "drivers/cpufreq/Kconfig.x86"