Skip to content

Commit

Permalink
mali_platform_dvfs: move initialization of mali asv values to init to…
Browse files Browse the repository at this point in the history
… properly initialize gpu defaults (originally by AndreiLux)
  • Loading branch information
gokhanmoral committed Dec 20, 2012
1 parent d7818fc commit b84470d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
Expand Up @@ -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();
Expand Down Expand Up @@ -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);

Expand Down
Expand Up @@ -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();
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit b84470d

Please sign in to comment.