diff options
author | Matt Longnecker <mlongnecker@nvidia.com> | 2014-08-18 17:00:01 -0700 |
---|---|---|
committer | Winnie Hsu <whsu@nvidia.com> | 2014-09-19 10:13:19 -0700 |
commit | 027d2646851ad2810a96db9d63d80bb333a543f0 (patch) | |
tree | 9b86bb54c6aa2a97b4c02bf4b34b116dfa8fc983 /include | |
parent | d758be8cb8f3f3a06ec1b4042b1af09c8c5de536 (diff) |
edp: sysedp : CPU/GPU priority depends on fGPU
Provide sysedp_dynamic_capping with the instantaneous GPU frequency
when notifying it of the GPU load. Modify the gpu/cpu priority
decision logic to choose CPU priority until GPU frequency gets "near"
the CPU-priority-limited-GPU-fmax. Introduce the priority_bias debugfs
parameter to facilitate tuning of "near". priority_bias takes a value
from 0 to 100.
Change-Id: I57df17d50cd8077a512b5932f4a304ca5e6992aa
Signed-off-by: Matt Longnecker <mlongnecker@nvidia.com>
Reviewed-on: http://git-master/r/481720
(cherry picked from commit b2ac745a45e273e849d7b190913ee97092fdebc2)
Reviewed-on: http://git-master/r/498901
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/platform_data/tegra_edp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/platform_data/tegra_edp.h b/include/linux/platform_data/tegra_edp.h index ecee6f02a791..db020fccdc46 100644 --- a/include/linux/platform_data/tegra_edp.h +++ b/include/linux/platform_data/tegra_edp.h @@ -59,9 +59,9 @@ struct tegra_sysedp_platform_data { }; #if defined(CONFIG_EDP_FRAMEWORK) || defined(CONFIG_SYSEDP_FRAMEWORK) -void tegra_edp_notify_gpu_load(unsigned int load); +void tegra_edp_notify_gpu_load(unsigned int load, unsigned int freq_in_hz); #else -static inline void tegra_edp_notify_gpu_load(unsigned int load) {} +static inline void tegra_edp_notify_gpu_load(unsigned int load, unsigned int freq_in_hz) {} #endif #endif |