OSDN Git Service

sched/tune: Hard-code top-app's stune boost to 1
authorSultan Alsawaf <sultan@kerneltoast.com>
Mon, 22 Apr 2019 09:07:57 +0000 (02:07 -0700)
committer0ranko0P <ranko0p@outlook.com>
Tue, 24 Dec 2019 20:42:50 +0000 (04:42 +0800)
Hard-code top-app's stune boost to 1 so that top-app processes are still
preferred to run on big cluster CPUs without significantly affecting the
CPU governor's frequency selection.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
kernel/sched/tune.c

index 9d01bb5..0215099 100644 (file)
@@ -757,6 +757,9 @@ boost_write(struct cgroup_subsys_state *css, struct cftype *cft,
        unsigned threshold_idx;
        int boost_pct;
 
+       if (!strcmp(css->cgroup->kn->name, "top-app"))
+               boost = 1;
+
        if (boost < -100 || boost > 100)
                return -EINVAL;
        boost_pct = boost;