Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc108002 authored by Maxime Poulain's avatar Maxime Poulain Committed by alexax66
Browse files

cpufreq:enable 1600 Mhz and 300 MHz freq steps

400 Mhz and 1500 Mhz remains respectively min and max freq.

Used commit: https://github.com/Khaon/android_kernel_samsung_a3xelte/commit/bdd0a8e276de03f0c36bc826a5ddd85a65a24925
parent 66158816
Loading
Loading
Loading
Loading
+6 −11
Original line number Diff line number Diff line
@@ -914,21 +914,16 @@ static int exynos_cpufreq_init(struct cpufreq_policy *policy)
	voltage_tolerance = exynos_get_voltage_tolerance(cpu_dev);
	policy->cur = exynos_cpufreq_get(policy->cpu);
	/* Later this code will be removed. This is for first lot */
	policy->cpuinfo.min_freq = 400000;
	freq_table[cur_cluster][13].frequency = CPUFREQ_ENTRY_INVALID;
	policy->cpuinfo.max_freq = 1600000;
	policy->cpuinfo.min_freq = 300000;

	if (samsung_rev() == EXYNOS7580_REV_0) {
	if (samsung_rev() == EXYNOS7580_REV_0)
		if (!support_full_frequency())
			policy->cpuinfo.max_freq = 800000;
		else
			policy->cpuinfo.max_freq = 1400000;
	} else if (soc_is_exynos7580_v1()) {
		policy->cpuinfo.max_freq = 1500000;
		freq_table[cur_cluster][0].frequency = CPUFREQ_ENTRY_INVALID;
	}

	if (soc_is_exynos7580_v1())
		policy->cpuinfo.max_freq = 1500000;
	/* CPU min and max freq policies upon boot */
	policy->max = 1500000;
	policy->min = 400000;

	cpumask_copy(policy->cpus, topology_core_cpumask(policy->cpu));