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

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

sched/core: Fix compilation issues when WALT is enabled



When WALT & UCLAMP are enabled, compilation is broken.

Change-Id: Id0b23f1d0fd0131f390c062076bddad5104ddd51
Signed-off-by: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
parent 801710a3
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -7216,6 +7216,11 @@ void ia64_set_curr_task(int cpu, struct task_struct *p)
/* task_group_lock serializes the addition/removal of task groups */
static DEFINE_SPINLOCK(task_group_lock);

static inline struct task_group *css_tg(struct cgroup_subsys_state *css)
{
	return css ? container_of(css, struct task_group, css) : NULL;
}

#if defined(CONFIG_SCHED_WALT) && defined(CONFIG_UCLAMP_TASK_GROUP)
static inline void walt_init_sched_boost(struct task_group *tg)
{
@@ -7254,6 +7259,7 @@ static void walt_schedgp_attach(struct cgroup_taskset *tset)
	struct task_struct *task;
	struct cgroup_subsys_state *css;
	bool colocate;
	struct task_group *tg;

	cgroup_taskset_first(tset, &css);
	tg = css_tg(css);
@@ -7454,11 +7460,6 @@ void sched_move_task(struct task_struct *tsk)
	task_rq_unlock(rq, tsk, &rf);
}

static inline struct task_group *css_tg(struct cgroup_subsys_state *css)
{
	return css ? container_of(css, struct task_group, css) : NULL;
}

static struct cgroup_subsys_state *
cpu_cgroup_css_alloc(struct cgroup_subsys_state *parent_css)
{