From 6ab5d169088cb4a23d281e2b42f153f8cb997892 Mon Sep 17 00:00:00 2001 From: Timo Alho Date: Wed, 4 Jul 2018 08:01:59 +0300 Subject: [PATCH] devfreq: add Makefile and Kconfig for Nvidia governors POD_SCALING, WMARK_ACTIVE, and WMARK_SIMPLE devfreq scaling governors were moved to linux-nvidia repository. Add corresponding Kconfig and Makefile for them. Bug 200427621 Change-Id: Ib6e9416c11c5a6938c472ebf2d9480d85ddd473d Signed-off-by: Timo Alho Reviewed-on: https://git-master.nvidia.com/r/1770155 Reviewed-by: Mikko Perttunen GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/devfreq/Kconfig | 33 +++++++++++++++++++++++++++++++++ drivers/devfreq/Makefile | 3 +++ 2 files changed, 36 insertions(+) create mode 100644 drivers/devfreq/Kconfig create mode 100644 drivers/devfreq/Makefile diff --git a/drivers/devfreq/Kconfig b/drivers/devfreq/Kconfig new file mode 100644 index 00000000..68cd006c --- /dev/null +++ b/drivers/devfreq/Kconfig @@ -0,0 +1,33 @@ +if PM_DEVFREQ + +comment "NVIDIA DEVFREQ Governors" + +config DEVFREQ_GOV_POD_SCALING + tristate "Power On Demand Scaling" + help + Sets the frequency based on two properties: + (1) The governor receives activity throughput hints that + indicate whether scaling up or down is required + (2) the load of the devices is estimated using busy times + from device profile to determine if the frequency should + be altered. + +config DEVFREQ_GOV_WMARK_SIMPLE + tristate "Simple Watermark" + help + Sets the frequency based on monitor watermark events. + This governor returns the next frequency from frequency table + based on type watermark event. + +config DEVFREQ_GOV_WMARK_ACTIVE + tristate "Active Watermark" + help + Sets the frequency based on monitor watermark events. + This governor calculates relation between current load and + target load. The next frequency is calculated by multiplying + this relation with the current frequency. + + The watermark values are updated so that the watermarks are + triggered when the above algorithm would change the frequency. + +endif # PM_DEVFREQ diff --git a/drivers/devfreq/Makefile b/drivers/devfreq/Makefile new file mode 100644 index 00000000..2e2d2063 --- /dev/null +++ b/drivers/devfreq/Makefile @@ -0,0 +1,3 @@ +obj-$(CONFIG_DEVFREQ_GOV_POD_SCALING) += governor_pod_scaling.o +obj-$(CONFIG_DEVFREQ_GOV_WMARK_SIMPLE) += governor_wmark_simple.o +obj-$(CONFIG_DEVFREQ_GOV_WMARK_ACTIVE) += governor_wmark_active.o