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: Archana Sriram <apsrir@codeaurora.org>
This commit is contained in:
parent
55f2ac015a
commit
59ad2b2992
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2010-2016, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2010-2016,2019, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -113,8 +113,8 @@ static struct clk_pair clks[KGSL_MAX_CLKS] = {
|
|||
},
|
||||
};
|
||||
|
||||
static unsigned int ib_votes[KGSL_MAX_BUSLEVELS];
|
||||
static unsigned int ab_votes[KGSL_MAX_BUSLEVELS];
|
||||
static unsigned long ib_votes[KGSL_MAX_BUSLEVELS];
|
||||
static unsigned long ab_votes[KGSL_MAX_BUSLEVELS];
|
||||
static int last_vote_buslevel;
|
||||
static int max_vote_buslevel;
|
||||
|
||||
|
@ -166,7 +166,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];
|
||||
}
|
||||
|
@ -179,8 +179,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;
|
||||
if (ib == 0)
|
||||
|
|
Loading…
Reference in New Issue