+3
−0
+1
−2
+1
−2
+13
−1
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
task_util() for WALT is currently defined as
p->ravg.demand / (sched_ravg_window >> SCHED_CAPACITY_SHIFT);
This math is required to scale the task demand to 1024 scale.
task_util() is used many times in task placement. So the calls
to this can be optimized by caching the scaled value when task
demand is calculated.
Change-Id: I0c170a10704ae3e8fe4e9f271e8e65c3923075e5
Signed-off-by:
Pavankumar Kondeti <pkondeti@codeaurora.org>