diff options
Diffstat (limited to 'tools/perf/util/affinity.c')
| -rw-r--r-- | tools/perf/util/affinity.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/tools/perf/util/affinity.c b/tools/perf/util/affinity.c index 7b12bd7a3080..f1e30d566db3 100644 --- a/tools/perf/util/affinity.c +++ b/tools/perf/util/affinity.c @@ -11,7 +11,7 @@  static int get_cpu_set_size(void)  { -	int sz = cpu__max_cpu() + 8 - 1; +	int sz = cpu__max_cpu().cpu + 8 - 1;  	/*  	 * sched_getaffinity doesn't like masks smaller than the kernel.  	 * Hopefully that's big enough. |