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

Commit ee27d8d6 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched/fair: Fix CPU capacity updates in update_cpu_capacity()"

parents 6785f3e7 fc75f666
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -9563,13 +9563,12 @@ static void update_cpu_capacity(struct sched_domain *sd, int cpu)
	int max_cap_cpu;
	unsigned long flags;

	capacity = min(capacity, thermal_cap(cpu));

	cpu_rq(cpu)->cpu_capacity_orig = capacity;

	capacity *= arch_scale_max_freq_capacity(sd, cpu);
	capacity >>= SCHED_CAPACITY_SHIFT;

	capacity = min(capacity, thermal_cap(cpu));
	cpu_rq(cpu)->cpu_capacity_orig = capacity;

	mcc = &cpu_rq(cpu)->rd->max_cpu_capacity;

	raw_spin_lock_irqsave(&mcc->lock, flags);