Message ID | 1445981544-21946-40-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 1cd0357..1e07b18 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c @@ -1719,7 +1719,7 @@ static int process_nrcpus(struct perf_file_section *section __maybe_unused, if (ph->needs_swap) nr = bswap_32(nr); - ph->env.nr_cpus_online = nr; + ph->env.nr_cpus_avail = nr; ret = readn(fd, &nr, sizeof(nr)); if (ret != sizeof(nr)) @@ -1728,7 +1728,7 @@ static int process_nrcpus(struct perf_file_section *section __maybe_unused, if (ph->needs_swap) nr = bswap_32(nr); - ph->env.nr_cpus_avail = nr; + ph->env.nr_cpus_online = nr; return 0; }