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

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

Merge "sched: walt: Fix thermal un-mitigation bug"

parents a4527aa7 17112237
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -2833,15 +2833,12 @@ unsigned long do_thermal_cap(int cpu, unsigned long thermal_max_freq)
		rcu_read_unlock();
	}

	if (cpu_max_table_freq[cpu] &&
	    unlikely(thermal_max_freq && thermal_max_freq
		!= cpu_max_table_freq[cpu])) {
	if (cpu_max_table_freq[cpu])
		return div64_ul(thermal_max_freq * max_cap[cpu],
				cpu_max_table_freq[cpu]);
	} else {
	else
		return rq->cpu_capacity_orig;
}
}

static DEFINE_SPINLOCK(cpu_freq_min_max_lock);
void sched_update_cpu_freq_min_max(const cpumask_t *cpus, u32 fmin, u32 fmax)