sched/core: Fix compilation issues when WALT is enabled

When WALT & UCLAMP are enabled, compilation is broken.

Change-Id: Id0b23f1d0fd0131f390c062076bddad5104ddd51
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
This commit is contained in:
Satya Durga Srinivasu Prabhala 2020-01-09 14:15:51 -08:00 • committed by Gerrit - the friendly Code Review server
commit abe694a346

View file

@ -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)
{