OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
779e67b
)
sched/tune: Hard-code top-app's stune boost to 1
author
Sultan Alsawaf
<sultan@kerneltoast.com>
Mon, 22 Apr 2019 09:07:57 +0000
(
02:07
-0700)
committer
0ranko0P
<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
patch
|
blob
|
history
diff --git
a/kernel/sched/tune.c
b/kernel/sched/tune.c
index
9d01bb5
..
0215099
100644
(file)
--- a/
kernel/sched/tune.c
+++ b/
kernel/sched/tune.c
@@
-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;