aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib
diff options
context:
space:
mode:
authorYinghai Lu <[email protected]>2011-03-02 11:22:14 +0100
committerTejun Heo <[email protected]>2011-03-02 16:34:09 +0100
commitce0033307f1b45e23e0c149f56ea4855eb4687ce (patch)
treea6e87fd74269aafacf62805252de181b9d499579 /tools/perf/scripts/python/Perf-Trace-Util/lib
parentcc28989437de5617875a2943697fe6ba51a0da8f (diff)
x86-64, NUMA: Fix distance table handling
NUMA distance table handling has the following problems. * numa_reset_distance() uses numa_distance * sizeof(numa_distance[0]) as the table size when it should be using the square of numa_distance. * The same size miscalculation when allocation space for phys_dist in numa_emulation(). * In numa_emulation(), phys_dist must be reserved; otherwise, the new emulated distance table may overlap it. Fix them and, while at it, take numa_distance_cnt resetting in numa_reset_distance() out of the if block to simplify the code a bit. David Rientjes reported incorrect handling of distance table during emulation. -tj: Edited out numa_alloc_distance() related changes which weren't necessary and rewrote patch description. -v2: Ingo was unhappy with 80-column limit induced linebreaks. Let lines run over 80-column. Signed-off-by: Yinghai Lu <[email protected]> Reported-by: David Rientjes <[email protected]> Signed-off-by: Tejun Heo <[email protected]> Cc: Ingo Molnar <[email protected]> Acked-by: David Rientjes <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions