diff options
author | Sidath Senanayake <sidaths@google.com> | 2018-12-06 09:09:59 +0100 |
---|---|---|
committer | Sidath Senanayake <sidaths@google.com> | 2018-12-06 09:09:59 +0100 |
commit | a970431fa55f99aba31ea4263fdc8e70019a9ccd (patch) | |
tree | 91bb7f49a4869c0385338fe144f53ac8b98468ea /mali_kbase/mali_kbase.h | |
parent | f10b3de5283d0c196459f18160161e48cfadae81 (diff) | |
download | gpu-a970431fa55f99aba31ea4263fdc8e70019a9ccd.tar.gz |
Mali Bifrost DDK r16p0 KMD
Provenance:
aa8b3ff0f (collaborate/EAC/b_r16p0)
BX304L01B-BU-00000-r16p0-01rel0
BX304L06A-BU-00000-r16p0-01rel0
BX304X07X-BU-00000-r16p0-01rel0
Signed-off-by: Sidath Senanayake <sidaths@google.com>
Change-Id: I96125862b7cf6596d1b7109853fb4ca39e851056
Diffstat (limited to 'mali_kbase/mali_kbase.h')
-rw-r--r-- | mali_kbase/mali_kbase.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/mali_kbase/mali_kbase.h b/mali_kbase/mali_kbase.h index cdd9ecc..24a021d 100644 --- a/mali_kbase/mali_kbase.h +++ b/mali_kbase/mali_kbase.h @@ -68,7 +68,7 @@ #include "mali_kbase_jd_debugfs.h" #include "mali_kbase_gpuprops.h" #include "mali_kbase_jm.h" -#include "mali_kbase_vinstr.h" +#include "mali_kbase_ioctl.h" #include "ipa/mali_kbase_ipa.h" @@ -353,22 +353,13 @@ static inline bool kbase_pm_is_suspending(struct kbase_device *kbdev) * * @kbdev: The kbase device structure for the device (must be a valid pointer) * - * This takes into account the following - * - * - whether there is an active context reference - * - * - whether any of the shader cores or the tiler are needed - * - * It should generally be preferred against checking just - * kbdev->pm.active_count on its own, because some code paths drop their - * reference on this whilst still having the shader cores/tiler in use. + * This takes into account whether there is an active context reference. * * Return: true if the GPU is active, false otherwise */ static inline bool kbase_pm_is_active(struct kbase_device *kbdev) { - return (kbdev->pm.active_count > 0 || kbdev->shader_needed_cnt || - kbdev->tiler_needed_cnt); + return kbdev->pm.active_count > 0; } /** @@ -713,6 +704,3 @@ int kbase_io_history_resize(struct kbase_io_history *h, u16 new_size); #endif - - - |