Skip to content
Snippets Groups Projects
Commit 4df0c1be authored by Qais Yousef's avatar Qais Yousef Committed by Deepak Kumar Mishra
Browse files

sched/fair: Consider capacity inversion in util_fits_cpu()


We do consider thermal pressure in util_fits_cpu() for uclamp_min only.
With the exception of the biggest cores which by definition are the max
performance point of the system and all tasks by definition should fit.

Even under thermal pressure, the capacity of the biggest CPU is the
highest in the system and should still fit every task. Except when it
reaches capacity inversion point, then this is no longer true.

We can handle this by using the inverted capacity as capacity_orig in
util_fits_cpu(). Which not only addresses the problem above, but also
ensure uclamp_max now considers the inverted capacity. Force fitting
a task when a CPU is in this adverse state will contribute to making the
thermal throttling last longer.

Signed-off-by: default avatarQais Yousef <qais.yousef@arm.com>
parent 909c60fd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment