Skip to content

Commit b514015

Browse files
Remove adreno idler Algorithm
Our GPU goes to the lowest GPU frequency in idle state using the msm-adreno-tz gpu governor This reverts commit c64c59b.
1 parent b5a7605 commit b514015

File tree

5 files changed

+0
-143
lines changed

5 files changed

+0
-143
lines changed

arch/arm/configs/athene_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3445,7 +3445,6 @@ CONFIG_INOTIFY_USER=y
34453445
# CONFIG_AUTOFS4_FS is not set
34463446
CONFIG_FUSE_FS=y
34473447
# CONFIG_CUSE is not set
3448-
CONFIG_ADRENO_IDLER=y
34493448

34503449
#
34513450
# Caches

drivers/devfreq/Kconfig

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,6 @@ config DEVFREQ_GOV_MSM_ADRENO_TZ
7979
Sets the frequency using a "on-demand" algorithm.
8080
This governor is unlikely to be useful for other devices.
8181

82-
config ADRENO_IDLER
83-
tristate "MSM Adreno idler"
84-
depends on DEVFREQ_GOV_MSM_ADRENO_TZ
85-
help
86-
Uses a different calculation method on top of Adreno TZ
87-
just for calculating frequency for idle to reduce the
88-
wasted power coming from stock Adreno TZ while
89-
maintaining high-performance.
90-
9182
config MSM_BIMC_BWMON
9283
tristate "MSM BIMC Bandwidth monitor hardware"
9384
depends on ARCH_MSM

drivers/devfreq/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ obj-$(CONFIG_DEVFREQ_GOV_POWERSAVE) += governor_powersave.o
88
obj-$(CONFIG_DEVFREQ_GOV_USERSPACE) += governor_userspace.o
99
obj-$(CONFIG_DEVFREQ_GOV_CPUFREQ) += governor_cpufreq.o
1010
obj-$(CONFIG_DEVFREQ_GOV_MSM_ADRENO_TZ) += governor_msm_adreno_tz.o
11-
obj-$(CONFIG_ADRENO_IDLER) += adreno_idler.o
1211
obj-$(CONFIG_DEVFREQ_GOV_MSM_CPUFREQ) += governor_msm_cpufreq.o
1312
obj-$(CONFIG_ARCH_MSM_KRAIT) += krait-l2pm.o
1413
obj-$(CONFIG_MSM_BIMC_BWMON) += bimc-bwmon.o

drivers/devfreq/adreno_idler.c

Lines changed: 0 additions & 113 deletions
This file was deleted.

drivers/devfreq/governor_msm_adreno_tz.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,6 @@ static int tz_init(struct devfreq_msm_adreno_tz_data *priv,
274274
return ret;
275275
}
276276

277-
#ifdef CONFIG_ADRENO_IDLER
278-
extern int adreno_idler(struct devfreq_dev_status stats, struct devfreq *devfreq,
279-
unsigned long *freq);
280-
#endif
281277
static int tz_get_target_freq(struct devfreq *devfreq, unsigned long *freq,
282278
u32 *flag)
283279
{
@@ -295,22 +291,7 @@ static int tz_get_target_freq(struct devfreq *devfreq, unsigned long *freq,
295291
return result;
296292
}
297293

298-
/* Prevent overflow */
299-
if (stats.busy_time >= (1 << 24) || stats.total_time >= (1 << 24)) {
300-
stats.busy_time >>= 7;
301-
stats.total_time >>= 7;
302-
}
303-
304294
*freq = stats.current_frequency;
305-
*flag = 0;
306-
307-
#ifdef CONFIG_ADRENO_IDLER
308-
if (adreno_idler(stats, devfreq, freq)) {
309-
/* adreno_idler has asked to bail out now */
310-
return 0;
311-
}
312-
#endif
313-
314295
priv->bin.total_time += stats.total_time;
315296
priv->bin.busy_time += stats.busy_time;
316297

0 commit comments

Comments
 (0)