summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Alho <talho@nvidia.com>2018-07-04 01:01:59 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-07-05 12:59:18 -0400
commitde9df1f6c982cf39b03d48506c79d50898608a41 (patch)
tree1765e33c69b86fc3d07463b685106fb8418e6e43
parent4eaf77da28b1f2e79217201ec08b202a6b1324fe (diff)
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 <talho@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1770155 Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r--drivers/devfreq/Kconfig33
-rw-r--r--drivers/devfreq/Makefile3
2 files changed, 36 insertions, 0 deletions
diff --git a/drivers/devfreq/Kconfig b/drivers/devfreq/Kconfig
new file mode 100644
index 000000000..68cd006ca
--- /dev/null
+++ b/drivers/devfreq/Kconfig
@@ -0,0 +1,33 @@
1if PM_DEVFREQ
2
3comment "NVIDIA DEVFREQ Governors"
4
5config DEVFREQ_GOV_POD_SCALING
6 tristate "Power On Demand Scaling"
7 help
8 Sets the frequency based on two properties:
9 (1) The governor receives activity throughput hints that
10 indicate whether scaling up or down is required
11 (2) the load of the devices is estimated using busy times
12 from device profile to determine if the frequency should
13 be altered.
14
15config DEVFREQ_GOV_WMARK_SIMPLE
16 tristate "Simple Watermark"
17 help
18 Sets the frequency based on monitor watermark events.
19 This governor returns the next frequency from frequency table
20 based on type watermark event.
21
22config DEVFREQ_GOV_WMARK_ACTIVE
23 tristate "Active Watermark"
24 help
25 Sets the frequency based on monitor watermark events.
26 This governor calculates relation between current load and
27 target load. The next frequency is calculated by multiplying
28 this relation with the current frequency.
29
30 The watermark values are updated so that the watermarks are
31 triggered when the above algorithm would change the frequency.
32
33endif # PM_DEVFREQ
diff --git a/drivers/devfreq/Makefile b/drivers/devfreq/Makefile
new file mode 100644
index 000000000..2e2d20630
--- /dev/null
+++ b/drivers/devfreq/Makefile
@@ -0,0 +1,3 @@
1obj-$(CONFIG_DEVFREQ_GOV_POD_SCALING) += governor_pod_scaling.o
2obj-$(CONFIG_DEVFREQ_GOV_WMARK_SIMPLE) += governor_wmark_simple.o
3obj-$(CONFIG_DEVFREQ_GOV_WMARK_ACTIVE) += governor_wmark_active.o