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

Commit 55beff90 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

sched: Fix a compilation issue in find_best_target() for !SCHED_WALT



A CPU is marked as reserved when a task is under active migration to
that CPU. The reserved CPUs are excluded from CPU selection in
find_best_target(). This reservation scheme is currently tied to WALT.
So add a stub function for is_reserved() to avoid compilation issue
when WALT is disabled.

Change-Id: I77c6a8fd3f24f1763fd97fce18574613e9e947ff
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 5eaea374
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2789,6 +2789,11 @@ static inline int cpu_max_power_cost(int cpu)

static inline void clear_walt_request(int cpu) { }

static inline int is_reserved(int cpu)
{
	return 0;
}

static inline int got_boost_kick(void)
{
	return 0;