Revert "sched/tune: only force UX tasks to big cores"

This reverts commit 89746abced305c81c70bb594445632743504b02c.

Change-Id: I903ace5520e79975fc3ad73822e193b2abaadaed
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
Richard Raya 2024-08-17 15:14:52 -03:00
parent 6603b051dd
commit 2b7c0a9d8d

View File

@ -474,22 +474,6 @@ int schedtune_cpu_boost(int cpu)
return bg->boost_max;
}
static inline bool schedtune_adj_ta(struct schedtune *st, struct task_struct *p)
{
char name_buf[NAME_MAX + 1];
int adj = p->signal->oom_score_adj;
cgroup_name(st->css.cgroup, name_buf, sizeof(name_buf));
if (!strncmp(name_buf, "top-app", strlen("top-app"))) {
if ((adj == 0) && !(p->flags & PF_KTHREAD)) {
pr_debug("top app is %s\n", p->comm);
return true;
}
}
return false;
}
int schedtune_task_boost(struct task_struct *p)
{
struct schedtune *st;
@ -501,7 +485,7 @@ int schedtune_task_boost(struct task_struct *p)
/* Get task boost value */
rcu_read_lock();
st = task_schedtune(p);
task_boost = st->boost || schedtune_adj_ta(st, p);
task_boost = st->boost;
rcu_read_unlock();
return task_boost;