Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c7f6058 authored by Archana Sriram's avatar Archana Sriram
Browse files

msm: kgsl: Change data type for GPU ib vote



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: default avatarArchana Sriram <apsrir@codeaurora.org>
parent 0aa4af23
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -51,7 +51,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;

@@ -115,7 +115,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];
}
@@ -129,8 +129,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;