Skip to content

Commit

Permalink
msm: kgsl: Change data type for GPU ib vote
Browse files Browse the repository at this point in the history
Change data type for gpu ib vote to unsigned long
to suit the bw vote data type in devfreq governor
functions.

Change-Id: I6aeb201ee67d111ee527c17e051b5125968a9683
Signed-off-by: Archana Sriram <[email protected]>
  • Loading branch information
Archana Sriram authored and Gerrit - the friendly Code Review server committed Jul 4, 2019
1 parent d05a251 commit 0137e26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/gpu/msm/kgsl_pwrctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ static const char * const clocks[] = {
"ahb_clk"
};

static unsigned int ib_votes[KGSL_MAX_BUSLEVELS];
static unsigned long ib_votes[KGSL_MAX_BUSLEVELS];
static int last_vote_buslevel;
static int max_vote_buslevel;

Expand Down Expand Up @@ -128,7 +128,7 @@ static void _record_pwrevent(struct kgsl_device *device,
/**
* kgsl_get_bw() - Return latest msm bus IB vote
*/
static unsigned int kgsl_get_bw(void)
static unsigned long kgsl_get_bw(void)
{
return ib_votes[last_vote_buslevel];
}
Expand All @@ -142,8 +142,8 @@ static unsigned int kgsl_get_bw(void)
static void _ab_buslevel_update(struct kgsl_pwrctrl *pwr,
unsigned long *ab)
{
unsigned int ib = ib_votes[last_vote_buslevel];
unsigned int max_bw = ib_votes[max_vote_buslevel];
unsigned long ib = ib_votes[last_vote_buslevel];
unsigned long max_bw = ib_votes[max_vote_buslevel];

if (!ab)
return;
Expand Down

0 comments on commit 0137e26

Please sign in to comment.