From 04ec9fc196c51101dddc057a22e04eb73bdea74a Mon Sep 17 00:00:00 2001 From: Deepak Kumar Date: Mon, 15 Jun 2020 11:58:33 +0530 Subject: [PATCH] msm: kgsl: Use BW_STEP as 50 for AB voting AB voting is done in multiples of BW_STEP. Using a big BW_STEP can result in AB overvoting because of roundup. Use BW_STEP as 50 instead of 160. This will reduce AB overvoting and will improve power. Change-Id: Ieff338685be9650218fd7accc4ed3bcf0d2756ec Signed-off-by: Deepak Kumar --- drivers/gpu/msm/governor_gpubw_mon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/msm/governor_gpubw_mon.c b/drivers/gpu/msm/governor_gpubw_mon.c index 0b8cf34c707f..cb120cef6023 100644 --- a/drivers/gpu/msm/governor_gpubw_mon.c +++ b/drivers/gpu/msm/governor_gpubw_mon.c @@ -17,7 +17,7 @@ #define CAP 75 #define WAIT_THRESHOLD 10 /* AB vote is in multiple of BW_STEP Mega bytes */ -#define BW_STEP 160 +#define BW_STEP 50 static void _update_cutoff(struct devfreq_msm_adreno_tz_data *priv, unsigned int norm_max)