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

Commit 2b5e39c9 authored by Satya Durga Srinivasu Prabhala's avatar Satya Durga Srinivasu Prabhala Committed by Gerrit - the friendly Code Review server
Browse files

sched/fair: move task_fits_max out of SCHED_WALT



task_fits_max is called outside of SCHED_WALT and results in
compilation failure if SCHED_WALT is disabled.

Change-Id: I12a0b93a714d041716fc651b461e6388a676f4a2
Signed-off-by: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
parent 3cd01765
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -40,9 +40,12 @@
#include "tune.h"
#include "walt.h"

#ifdef CONFIG_SMP
static inline bool task_fits_max(struct task_struct *p, int cpu);
#endif /* CONFIG_SMP */

#ifdef CONFIG_SCHED_WALT

static inline bool task_fits_max(struct task_struct *p, int cpu);
static void walt_fixup_sched_stats_fair(struct rq *rq, struct task_struct *p,
					u32 new_task_load, u32 new_pred_demand);
static void walt_fixup_nr_big_tasks(struct rq *rq, struct task_struct *p,