mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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:
parent
6603b051dd
commit
2b7c0a9d8d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user