aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
diff options
context:
space:
mode:
authorSuzuki K Poulose <[email protected]>2016-07-21 11:15:27 +0100
committerCatalin Marinas <[email protected]>2016-07-21 16:48:37 +0100
commite75118a7b581b19b08282c7819c1ec6f68b91b79 (patch)
treeb2f9b83d8f4627a243c20001ec064e27aad10a01 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
parent9113c2aa05e9848cd4f1154abee17d4f265f012d (diff)
arm64: Honor nosmp kernel command line option
Passing "nosmp" should boot the kernel with a single processor, without provision to enable secondary CPUs even if they are present. "nosmp" is implemented by setting maxcpus=0. At the moment we still mark the secondary CPUs present even with nosmp, which allows the userspace to bring them up. This patch corrects the smp_prepare_cpus() to honor the maxcpus == 0. Commit 44dbcc93ab67145 ("arm64: Fix behavior of maxcpus=N") fixed the behavior for maxcpus >= 1, but broke maxcpus = 0. Fixes: 44dbcc93ab67 ("arm64: Fix behavior of maxcpus=N") Cc: <[email protected]> # 4.7+ Cc: Will Deacon <[email protected]> Cc: James Morse <[email protected]> Signed-off-by: Suzuki K Poulose <[email protected]> Acked-by: Mark Rutland <[email protected]> [[email protected]: updated code comment] Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions