Change-Id: I96b84d6128e2772c594c0345d4831933c761203b
Signed-off-by: Seonghun, Kim <sh_ko.kim@samsung.com>
int clock = 0;
DVFS_ASSERT(platform);
-
+#ifdef CONFIG_MALI_RT_PM
+ if (platform->exynos_pm_domain) {
+ mutex_lock(&platform->exynos_pm_domain->access_lock);
+ if (!platform->dvs_is_enabled && gpu_is_power_on())
+ clock = gpu_get_cur_clock(platform);
+ mutex_unlock(&platform->exynos_pm_domain->access_lock);
+ }
+#else
if (gpu_control_is_power_on(pkbdev) == 1) {
mutex_lock(&platform->gpu_clock_lock);
clock = gpu_get_cur_clock(platform);
mutex_unlock(&platform->gpu_clock_lock);
}
+#endif
return clock;
}