Skip to content
Browse files

mali_platform_dvfs: move initialization of mali asv values to init to…

… properly initialize gpu defaults (originally by AndreiLux)
  • Loading branch information...
1 parent d7818fc commit b84470d6828c914e6cbeb5e470ad88f4896f04b2 @gokhanmoral committed
View
14 drivers/media/video/samsung/mali/platform/pegasus-m400/mali_platform_dvfs.c
@@ -577,20 +577,8 @@ static mali_bool mali_dvfs_status(u32 utilization)
unsigned int curStatus = 0;
mali_bool boostup = MALI_FALSE;
static int stay_count = 0;
-#ifdef EXYNOS4_ASV_ENABLED
- static mali_bool asv_applied = MALI_FALSE;
-#endif
MALI_DEBUG_PRINT(1, ("> mali_dvfs_status: %d \n",utilization));
-#ifdef EXYNOS4_ASV_ENABLED
- if (asv_applied == MALI_FALSE) {
- mali_dvfs_table_update();
- change_mali_dvfs_status(1, 0);
- asv_applied = MALI_TRUE;
-
- return MALI_TRUE;
- }
-#endif
/*decide next step*/
curStatus = get_mali_dvfs_status();
@@ -738,6 +726,8 @@ mali_bool init_mali_dvfs_status(int step)
_mali_osk_atomic_init(&bottomlock_status, 0);
+ mali_dvfs_table_update();
+
/*add a error handling here*/
set_mali_dvfs_current_step(step);
View
14 drivers/media/video/samsung/mali_r3p0_lsi/platform/pegasus-m400/mali_platform_dvfs.c
@@ -512,20 +512,8 @@ static mali_bool mali_dvfs_status(u32 utilization)
unsigned int curStatus = 0;
mali_bool boostup = MALI_FALSE;
static int stay_count = 0;
-#ifdef EXYNOS4_ASV_ENABLED
- static mali_bool asv_applied = MALI_FALSE;
-#endif
MALI_DEBUG_PRINT(1, ("> mali_dvfs_status: %d \n",utilization));
-#ifdef EXYNOS4_ASV_ENABLED
- if (asv_applied == MALI_FALSE) {
- mali_dvfs_table_update();
- change_mali_dvfs_status(1, 0);
- asv_applied = MALI_TRUE;
-
- return MALI_TRUE;
- }
-#endif
/*decide next step*/
curStatus = get_mali_dvfs_status();
@@ -673,6 +661,8 @@ mali_bool init_mali_dvfs_status(int step)
_mali_osk_atomic_init(&bottomlock_status, 0);
+ mali_dvfs_table_update();
+
/*add a error handling here*/
set_mali_dvfs_current_step(step);

0 comments on commit b84470d

Please sign in to comment.
Something went wrong with that request. Please try again.