diff options
| author | Srivatsa Vaddagiri <[email protected]> | 2010-06-08 14:57:02 +1000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2010-06-09 10:34:54 +0200 |
| commit | 9d5efe05eb0c904545a28b19c18b949f23334de0 (patch) | |
| tree | afa28fe2f3abd6fb538a7f0039c75a5e6463eeb1 /tools/perf/scripts/python | |
| parent | 83cd4fe27ad8446619b2e030b171b858501de87d (diff) | |
sched: Fix capacity calculations for SMT4
Handle cpu capacity being reported as 0 on cores with more number of
hardware threads. For example on a Power7 core with 4 hardware
threads, core power is 1177 and thus power of each hardware thread is
1177/4 = 294. This low power can lead to capacity for each hardware
thread being calculated as 0, which leads to tasks bouncing within the
core madly!
Fix this by reporting capacity for hardware threads as 1, provided
their power is not scaled down significantly because of frequency
scaling or real-time tasks usage of cpu.
Signed-off-by: Srivatsa Vaddagiri <[email protected]>
Signed-off-by: Michael Neuling <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Arjan van de Ven <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions