mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
sched: Implement se_weight() from 6.1
Some checks are pending
Build Kernel / build (push) Waiting to run
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:
parent
e320efe2c0
commit
039877dacb
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user