diff options
author | Paul Turner <[email protected]> | 2011-01-14 17:57:50 -0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2011-01-18 15:09:38 +0100 |
commit | 977dda7c9b540f48b228174346d8b31542c1e99f (patch) | |
tree | 77d40bcc72c1590dfcaeadb60e92a270bd204c52 /tools/perf/util/trace-event-scripting.c | |
parent | c9b5f501ef1580faa30c40c644b7691870462201 (diff) |
sched: Update effective_load() to use global share weights
Previously effective_load would approximate the global load weight present on
a group taking advantage of:
entity_weight = tg->shares ( lw / global_lw ), where entity_weight was provided
by tg_shares_up.
This worked (approximately) for an 'empty' (at tg level) cpu since we would
place boost load representative of what a newly woken task would receive.
However, now that load is instantaneously updated this assumption is no longer
true and the load calculation is rather incorrect in this case.
Fix this (and improve the general case) by re-writing effective_load to take
advantage of the new shares distribution code.
Signed-off-by: Paul Turner <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions