projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42a730a
)
ANDROID: sched/fair: cosmetics
author
Patrick Bellasi
<patrick.bellasi@arm.com>
Mon, 12 Feb 2018 15:56:18 +0000
(15:56 +0000)
committer
Patrick Bellasi
<patrick.bellasi@arm.com>
Thu, 7 Jun 2018 13:44:47 +0000
(13:44 +0000)
Change-Id: Ibbefdf1cdb4d72c7075c7b3edf6789630475a8e2
Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
kernel/sched/fair.c
patch
|
blob
|
history
diff --git
a/kernel/sched/fair.c
b/kernel/sched/fair.c
index
52ad822
..
dd4f623
100644
(file)
--- a/
kernel/sched/fair.c
+++ b/
kernel/sched/fair.c
@@
-6102,13
+6102,14
@@
schedtune_margin(unsigned long signal, long boost)
if (boost >= 0) {
margin = SCHED_CAPACITY_SCALE - signal;
margin *= boost;
- } else
+ } else
{
margin = -signal * boost;
+ }
margin = reciprocal_divide(margin, schedtune_spc_rdiv);
-
if (boost < 0)
margin *= -1;
+
return margin;
}