diff options
author | Muchun Song <[email protected]> | 2020-07-16 15:04:57 +0800 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2020-07-22 10:22:04 +0200 |
commit | 589343569d7b58a64ec2446e6686c8e79aea7fcf (patch) | |
tree | 9315aba02d65fa567e540488cc2973dd8d06e66b /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | 3edecfef028536cb19a120ec8788bd8a11f93b9e (diff) |
smp: Fix a potential usage of stale nr_cpus
The get_option() maybe return 0, it means that the nr_cpus is
not initialized. Then we will use the stale nr_cpus to initialize
the nr_cpu_ids. So fix it.
Signed-off-by: Muchun Song <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions