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

Commit 975df699 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: thermal: lmh-dcvsh: Allow boost frequency"

parents 8b74e7bc d467cbcc
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -354,7 +354,13 @@ static int lmh_set_max_limit(int cpu, u32 freq)
	mutex_lock(&hw->access_lock);
	for_each_cpu(cpu_idx, &hw->core_map) {
		if (cpu_idx == cpu)
			hw->cdev_data[idx].max_freq = freq;
		/*
		 * If there is no limits restriction for CPU scaling max
		 * frequency, vote for a very high value. This will allow
		 * the CPU to use the boost frequencies.
		 */
			hw->cdev_data[idx].max_freq =
				(freq == hw->max_freq) ? U32_MAX : freq;
		if (max_freq > hw->cdev_data[idx].max_freq)
			max_freq = hw->cdev_data[idx].max_freq;
		idx++;