Skip to content
This repository has been archived by the owner on Jul 18, 2018. It is now read-only.

Commit

Permalink
cpufreq: hotplug & thunderx governor
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkAbhi committed Apr 22, 2018
1 parent 9d9042c commit 46f06ca
Show file tree
Hide file tree
Showing 9 changed files with 2,594 additions and 3 deletions.
7 changes: 4 additions & 3 deletions arch/arm64/configs/dark_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ CONFIG_BUILD_ARM64_APPENDED_DTB_IMAGE_NAMES="x500"

CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_STAT_DETAILS=y
CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_DEFAULT_GOV_THUNDERX=y
CONFIG_CPU_FREQ_GOV_INTERACTIVE=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_THUNDERX=y
CONFIG_CPU_FREQ_GOV_HOTPLUG=y
CONFIG_CPU_IDLE=y

# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
Expand Down Expand Up @@ -258,8 +260,7 @@ CONFIG_MTK_LENS_AD5820AF_SUPPORT=y
# CONFIG_MTK_LENS_AD5823_SUPPORT is not set
# CONFIG_MTK_LENS_AD5823AF_SUPPORT is not set
# CONFIG_MTK_LENS_AK7345AF_SUPPORT is not set
# CONFIG_MTK_LENS_BU6424AF_SUPPORT is not set
# CONFIG_MTK_LENS_BU6429AF_SUPPORT is not set
# CONFIG_MK_LENS_BU6424AF_TSUPPORT is not set
CONFIG_MTK_LENS_BU6429AF_SUPPORT=y
CONFIG_MTK_LENS_LC898217AF_SUPPORT=y
# CONFIG_MTK_LENS_BU64745GWZAF_SUPPORT is not set
Expand Down
12 changes: 12 additions & 0 deletions drivers/cpufreq/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ 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_THUNDERX
bool "thunderx"
select CPU_FREQ_GOV_THUNDERX
help
Uses ThunderX as Your Default Governer

config CPU_FREQ_DEFAULT_GOV_BALANCE
bool "balance"
select CPU_FREQ_GOV_BALANCE
Expand Down Expand Up @@ -260,6 +266,12 @@ config CPU_FREQ_GOV_INTERACTIVE

If in doubt, say N.

config CPU_FREQ_GOV_THUNDERX
tristate "'thunderx' cpufreq governor"
depends on CPU_FREQ
help
'thunderx' - a "power optimized" governor for Mediatek SoCs

config CPU_FREQ_GOV_CONSERVATIVE
tristate "'conservative' cpufreq governor"
depends on CPU_FREQ
Expand Down
1 change: 1 addition & 0 deletions drivers/cpufreq/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ obj-$(CONFIG_CPU_FREQ_GOV_INTERACTIVEPLUS) += cpufreq_interactiveplus.o
obj-$(CONFIG_CPU_FREQ_GOV_CONSERVATIVE) += cpufreq_conservative.o
obj-$(CONFIG_CPU_FREQ_GOV_INTERACTIVE) += cpufreq_interactive.o
obj-$(CONFIG_CPU_FREQ_GOV_HOTPLUG) += cpufreq_hotplug.o
obj-$(CONFIG_CPU_FREQ_GOV_THUNDERX) += cpufreq_thunderx.o
obj-$(CONFIG_CPU_FREQ_GOV_COMMON) += cpufreq_governor.o
obj-$(CONFIG_CPU_FREQ_GOV_BALANCE) += cpufreq_balance.o

Expand Down
Loading

0 comments on commit 46f06ca

Please sign in to comment.