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

Commit a9dc5d0e authored by Alex Shi's avatar Alex Shi Committed by Ingo Molnar
Browse files

sched: Change get_rq_runnable_load() to static and inline

parent a9cef46a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -502,12 +502,12 @@ static void __update_cpu_load(struct rq *this_rq, unsigned long this_load,
}

#ifdef CONFIG_SMP
unsigned long get_rq_runnable_load(struct rq *rq)
static inline unsigned long get_rq_runnable_load(struct rq *rq)
{
	return rq->cfs.runnable_load_avg;
}
#else
unsigned long get_rq_runnable_load(struct rq *rq)
static inline unsigned long get_rq_runnable_load(struct rq *rq)
{
	return rq->load.weight;
}