sched: Implement se_weight() from 6.1
Some checks are pending
Build Kernel / build (push) Waiting to run

Change-Id: I04d3a7c68826f406a987876d4877198275bc0510
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
Richard Raya 2025-02-08 23:08:30 -03:00
parent e320efe2c0
commit 039877dacb

View File

@ -707,6 +707,13 @@ struct dl_rq {
}; };
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
/*
* XXX we want to get rid of these helpers and use the full load resolution.
*/
static inline long se_weight(struct sched_entity *se)
{
return scale_load_down(se->load.weight);
}
static inline bool sched_asym_prefer(int a, int b) static inline bool sched_asym_prefer(int a, int b)
{ {