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

Commit 919c7a17 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched: fix suspicious RCU usage warning"

parents cce34db9 580788d5
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -3056,14 +3056,21 @@ extern struct walt_sched_cluster *rq_cluster(struct rq *rq);
#ifdef CONFIG_UCLAMP_TASK_GROUP
static inline bool task_sched_boost(struct task_struct *p)
{
	struct cgroup_subsys_state *css = task_css(p, cpu_cgrp_id);
	struct cgroup_subsys_state *css;
	struct task_group *tg;
	bool sched_boost_enabled;

	if (!css)
	rcu_read_lock();
	css = task_css(p, cpu_cgrp_id);
	if (!css) {
		rcu_read_unlock();
		return false;
	}
	tg = container_of(css, struct task_group, css);
	sched_boost_enabled = tg->wtg.sched_boost_enabled;
	rcu_read_unlock();

	return tg->wtg.sched_boost_enabled;
	return sched_boost_enabled;
}

extern int sync_cgroup_colocation(struct task_struct *p, bool insert);