mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
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>
This commit is contained in:
committed by
Laxman Dewangan
parent
164daa17cc
commit
6ab5d16908
33
drivers/devfreq/Kconfig
Normal file
33
drivers/devfreq/Kconfig
Normal file
@@ -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
|
||||||
3
drivers/devfreq/Makefile
Normal file
3
drivers/devfreq/Makefile
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user