Skip to content

Commit 67c253d

Browse files
committed
Finally fix optdemand & scene_aware
1 parent 1647bf3 commit 67c253d

File tree

4 files changed

+2
-17
lines changed

4 files changed

+2
-17
lines changed

arch/arm64/configs/merge_hi3635_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVE=y
339339
# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
340340
CONFIG_CPU_FREQ_GOV_INTERACTIVE=y
341341
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
342-
# CONFIG_CPU_FREQ_GOV_PERFORMANCE is not set
342+
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
343343
# CONFIG_CPU_FREQ_GOV_POWERSAVE is not set
344344
# CONFIG_CPU_FREQ_GOV_USERSPACE is not set
345345
# CONFIG_CPU_FREQ_STAT_DETAILS is not set

drivers/cpufreq/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ config CPU_FREQ_GOV_CONSERVATIVE
244244

245245
config CPU_FREQ_GOV_OPTDEMAND
246246
tristate "'optdemand' cpufreq policy governor"
247-
depends on ARCH_HI6XXX
248247
select CPU_FREQ_TABLE
249248
select CPU_FREQ_GOV_COMMON
250249
help

drivers/cpufreq/cpufreq_optdemand.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,6 @@ static void optdemand_dbs_check_cpu(struct dbs_data *dbs_data, int cpu)
343343
max_load = load;
344344
}
345345

346-
#ifdef CONFIG_SCHED_HMP
347-
hmp_slower_domain_avg_load = little_total_load/4;
348-
/*hmp_slower_domain_load = min_load;*/
349-
hmp_slower_domain_load = hmp_slower_domain_avg_load;
350-
#endif
351-
352346
dbs_data->cdata->gov_check_cpu(cpu, max_load);
353347
}
354348

@@ -1306,9 +1300,6 @@ static int cpufreq_governor_optdemand(struct cpufreq_policy *policy,
13061300

13071301
cpuinfo->rate_mult = 1;
13081302
cpufreq_optdemand_initialized = 1;
1309-
#ifdef CONFIG_SCHED_HMP
1310-
hmp_load_ctrl_flag = 1;
1311-
#endif
13121303

13131304
mutex_unlock(&dbs_data->mutex);
13141305

@@ -1322,9 +1313,6 @@ static int cpufreq_governor_optdemand(struct cpufreq_policy *policy,
13221313

13231314
case CPUFREQ_GOV_STOP:
13241315
cpufreq_optdemand_initialized = 0;
1325-
#ifdef CONFIG_SCHED_HMP
1326-
hmp_load_ctrl_flag = 0;
1327-
#endif
13281316
gov_cancel_work(dbs_data, policy);
13291317

13301318
mutex_lock(&dbs_data->mutex);

drivers/devfreq/Kconfig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ config DEVFREQ_GOV_PM_QOS
7474
Sets the frequency based on pm_qos throughput constraints.
7575

7676
config DEVFREQ_GOV_GPU_SCENE_AWARE
77-
tristate "Hisilicon GPU Scene Aware"
78-
depends on ARCH_HISI && PM_DEVFREQ
79-
select PM_OPP
77+
tristate "Scene Aware"
8078

8179
comment "DEVFREQ Drivers"
8280

0 commit comments

Comments
 (0)