Skip to content

Commit

Permalink
More elegant and more functional way to make 2.2 Ghz frequence availa…
Browse files Browse the repository at this point in the history
…ble, ~2000 score increased in Antutu Benchmark.

In this way the cpu is detected as CPU_LEVEL_2 and this make available all scripts related to it as conceived from mediatek. In other words, to make 2.2 ghz available but left the cpu to be detected as cpu_level_1 does not make scripts related to pll (frequence handling) and temperature handling working correctly as programmed.
  • Loading branch information
Pesach85 committed Nov 2, 2016
1 parent ac0a06c commit ea51520
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions kernel-3.10/drivers/misc/mediatek/mach/mt6795/mt_cpufreq_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ extern unsigned int mt_get_cpu_freq(void);
#define CPU_DVFS_FREQ7 (403000) /* KHz */
#define CPUFREQ_LAST_FREQ_LEVEL (CPU_DVFS_FREQ7)

#define CPU_DVFS_FREQ0_1 (2158000) /* KHz */
#define CPU_DVFS_FREQ1_1 (1885000) /* KHz */
#define CPU_DVFS_FREQ2_1 (1664000) /* KHz */
#define CPU_DVFS_FREQ3_1 (1482000) /* KHz */
#define CPU_DVFS_FREQ0_1 (1950000) /* KHz */
#define CPU_DVFS_FREQ1_1 (1781000) /* KHz */
#define CPU_DVFS_FREQ2_1 (1625000) /* KHz */
#define CPU_DVFS_FREQ3_1 (1469000) /* KHz */
#define CPU_DVFS_FREQ4_1 (1326000) /* KHz */
#define CPU_DVFS_FREQ5_1 (1183000) /* KHz */
#define CPU_DVFS_FREQ6_1 (806000) /* KHz */
Expand Down Expand Up @@ -307,15 +307,9 @@ static unsigned int _mt_cpufreq_get_cpu_level(void)
break;

case 2000:
lv = CPU_LEVEL_1; // 1.95G
break;

case 2200:
lv = CPU_LEVEL_2; // 2.158G
break;

default:
lv = CPU_LEVEL_1; // 1.95G M
lv = CPU_LEVEL_2; // 2.158G
break;
}

Expand Down

0 comments on commit ea51520

Please sign in to comment.