Merge tag 'sched-urgent-2024-01-18' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler fix from Ingo Molnar: "Fix a cpufreq related performance regression on certain systems, where the CPU would remain at the lowest frequency, degrading performance substantially" * tag 'sched-urgent-2024-01-18' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: sched/fair: Fix frequency selection for non-invariant case
This commit is contained in:
@@ -133,7 +133,11 @@ unsigned long get_capacity_ref_freq(struct cpufreq_policy *policy)
|
||||
if (arch_scale_freq_invariant())
|
||||
return policy->cpuinfo.max_freq;
|
||||
|
||||
return policy->cur;
|
||||
/*
|
||||
* Apply a 25% margin so that we select a higher frequency than
|
||||
* the current one before the CPU is fully busy:
|
||||
*/
|
||||
return policy->cur + (policy->cur >> 2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user