lkml.org 
[lkml]   [2017]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] perf: fix topology test on systems with sparse CPUs
On Mon, Jan 30, 2017 at 05:53:34PM +0100, Jan Stancek wrote:
> Topology test fails on systems with sparse CPUs, e.g.

SNIP

>
> - for (i = 0; i < nr; i++) {
> - ret = build_cpu_topo(tp, i);
> + for (i = 0; i < tp->cpu_nr; i++) {
> + cpu = map->map[i];

no need for cpu variable

jirka

> + ret = build_cpu_topo(tp, cpu);
> if (ret < 0)
> break;

\
 
 \ /
  Last update: 2017-01-30 19:50    [W:0.123 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site