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

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

sched: Fix compilation error with task_in_cum_window_demand for !SCHED_WALT



task_in_cum_window_demand is a WALT specific function, accessing it
when SCHED_WALT not enabled results in compilation error. Fix the issue
by adding task_in_cum_window_demand when SCHED_WALT is disabled.

Change-Id: I3876c1cb766daa549ddc7edd5da2d45617656024
Signed-off-by: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
parent 2b5e39c9
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2921,6 +2921,12 @@ static inline int sched_boost(void)
	return 0;
}

static inline bool
task_in_cum_window_demand(struct rq *rq, struct task_struct *p)
{
	return false;
}

static inline bool hmp_capable(void) { return false; }
static inline bool is_max_capacity_cpu(int cpu) { return true; }
static inline bool is_min_capacity_cpu(int cpu) { return true; }