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

Commit 982532cc authored by Taniya Das's avatar Taniya Das
Browse files

cpufreq: qcom: Update logic to consider boost frequency



The current consideration for boost frequency was based on the mismatch
of the core count and max cores. Update the logic to consider boost and
normal frequency.

Change-Id: I74e71968a175e3641f93df7426492109c53ab921
Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
parent 00f1edbb
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -414,9 +414,11 @@ static int qcom_cpufreq_hw_read_lut(struct platform_device *pdev,
			i, c->table[i].frequency, core_count);
			i, c->table[i].frequency, core_count);


		if (core_count != c->max_cores) {
		if (core_count != c->max_cores) {
			if (core_count < (c->max_cores - 1)) {
				cur_freq = CPUFREQ_ENTRY_INVALID;
				cur_freq = CPUFREQ_ENTRY_INVALID;
				c->table[i].flags = CPUFREQ_BOOST_FREQ;
				c->table[i].flags = CPUFREQ_BOOST_FREQ;
			}
			}
		}


		/*
		/*
		 * Two of the same frequencies with the same core counts means
		 * Two of the same frequencies with the same core counts means