diff options
author | Yuyang Du <[email protected]> | 2014-12-19 08:29:56 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2015-01-09 11:18:54 +0100 |
commit | 32a8df4e0b33fccc9715213b382160415b5c4008 (patch) | |
tree | 53e679c64d49f4a7dd1b23644c89517a391f7d33 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 536ebe9ca999f6d0903d91698678ccc1742e8dd9 (diff) |
sched: Fix odd values in effective_load() calculations
In effective_load, we have (long w * unsigned long tg->shares) / long W,
when w is negative, it is cast to unsigned long and hence the product is
insanely large. Fix this by casting tg->shares to long.
Reported-by: Sasha Levin <[email protected]>
Signed-off-by: Yuyang Du <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Dave Jones <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions