Skip to content

Commit

Permalink
cpufreq: blu_schedutil: Introduce initial bringup
Browse files Browse the repository at this point in the history
Import from linux 4.9 android-common plus additional changes and fixes

Signed-off-by: engstk <[email protected]>
  • Loading branch information
engstk authored and milouk committed Oct 31, 2018
1 parent 1c56c19 commit 425b556
Show file tree
Hide file tree
Showing 3 changed files with 807 additions and 1 deletion.
29 changes: 28 additions & 1 deletion drivers/cpufreq/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,15 @@ config CPU_FREQ_DEFAULT_GOV_SCHEDUTIL
have a look at the help section of that governor. The fallback
governor will be 'performance'.

config CPU_FREQ_DEFAULT_GOV_BLU_SCHEDUTIL
bool "blu_schedutil"
select CPU_FREQ_GOV_BLU_SCHEDUTIL
select CPU_FREQ_GOV_PERFORMANCE
help
Use the 'blu_schedutil' CPUFreq governor by default. If unsure,
have a look at the help section of that governor. The fallback
governor will be 'performance'.

endchoice

config CPU_FREQ_GOV_PERFORMANCE
Expand Down Expand Up @@ -277,7 +286,25 @@ config CPU_FREQ_GOV_SCHEDUTIL

If in doubt, say N.

comment "CPU frequency scaling drivers"
config CPU_FREQ_GOV_BLU_SCHEDUTIL
tristate "'blu_schedutil' cpufreq policy governor"
depends on CPU_FREQ
select CPU_FREQ_GOV_ATTR_SET
select IRQ_WORK
help
This governor makes decisions based on the utilization data provided
by the scheduler. It sets the CPU frequency to be proportional to
the utilization/capacity ratio coming from the scheduler. If the
utilization is frequency-invariant, the new frequency is also
proportional to the maximum available frequency. If that is not the
case, it is proportional to the current frequency of the CPU. The
frequency tipping point is at utilization/capacity equal to 80% in
both cases.

To compile this driver as a module, choose M here: the module will
be called cpufreq_blu_schedutil.

If in doubt, say N.

config CPUFREQ_DT
tristate "Generic DT based cpufreq driver"
Expand Down
1 change: 1 addition & 0 deletions kernel/sched/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ obj-$(CONFIG_CPU_FREQ) += cpufreq.o
obj-$(CONFIG_CPU_FREQ_GOV_SCHEDUTIL) += cpufreq_schedutil.o
obj-$(CONFIG_SCHED_CORE_CTL) += core_ctl.o
obj-$(CONFIG_CPU_FREQ_GOV_SCHED) += cpufreq_sched.o
obj-$(CONFIG_CPU_FREQ_GOV_BLU_SCHEDUTIL) += cpufreq_blu_schedutil.o
Loading

0 comments on commit 425b556

Please sign in to comment.