diff options
-rw-r--r-- | mali_kbase/platform/pixel/pixel_gpu_dvfs_qos.c | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/mali_kbase/platform/pixel/pixel_gpu_dvfs_qos.c b/mali_kbase/platform/pixel/pixel_gpu_dvfs_qos.c index 88c22f7..7c7f84f 100644 --- a/mali_kbase/platform/pixel/pixel_gpu_dvfs_qos.c +++ b/mali_kbase/platform/pixel/pixel_gpu_dvfs_qos.c @@ -22,19 +22,6 @@ #include "pixel_gpu_dvfs.h" /** - * qos_set() - Set a QOS vote on an IP block - * - * @vote: The &struct gpu_dvfs_qos_vote to set the vote on. - * @value: The value to vote for. - */ -static inline void qos_set(struct gpu_dvfs_qos_vote *vote, int value) { - if (unlikely(value)) { - exynos_pm_qos_update_request(&vote->req, value); - vote->enabled = true; - } -} - -/** * qos_reset() - Resets a QOS vote on an IP block * * @vote: The &struct gpu_dvfs_qos_vote to reset the vote on. @@ -50,6 +37,22 @@ static inline void qos_reset(struct gpu_dvfs_qos_vote *vote) { } /** + * qos_set() - Set a QOS vote on an IP block + * + * @vote: The &struct gpu_dvfs_qos_vote to set the vote on. + * @value: The value to vote for. + */ +static inline void qos_set(struct gpu_dvfs_qos_vote *vote, int value) { + if (unlikely(value)) { + exynos_pm_qos_update_request(&vote->req, value); + vote->enabled = true; + } + else { + qos_reset(vote); + } +} + +/** * gpu_dvfs_qos_set() - Issue QOS requests for a GPU DVFS level. * * @kbdev: The &struct kbase_device for the GPU. |