Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1372411
| From | Suzuki K Poulose <suzuki.poulose@arm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 5/5] arm64: Fix behavior of maxcpus=N |
| Date | 2016-04-06 13:30 +0200 |
| Message-ID | <rkTOO-33a-29@gated-at.bofh.it> (permalink) |
| References | <rkTOO-33a-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
maxcpu=n sets the number of CPUs activated at boot time to a max of n,
but allowing the remaining CPUs to be brought up later if the user
decides to do so. However, on arm64 due to various reasons, we disallowed
hotplugging CPUs beyond n, by marking them not present. Now that
we have checks in place to make sure the hotplugged CPUs have compatible
features with system and requires no new errata, relax the restriction.
Cc: Will Deacon <will.deacon@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
---
arch/arm64/kernel/smp.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c
index b2d5f4e..0988ccc 100644
--- a/arch/arm64/kernel/smp.c
+++ b/arch/arm64/kernel/smp.c
@@ -659,21 +659,12 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
if (max_cpus > ncores)
max_cpus = ncores;
- /* Don't bother if we're effectively UP */
- if (max_cpus <= 1)
- return;
-
/*
* Initialise the present map (which describes the set of CPUs
* actually populated at the present time) and release the
* secondaries from the bootloader.
- *
- * Make sure we online at most (max_cpus - 1) additional CPUs.
*/
- max_cpus--;
for_each_possible_cpu(cpu) {
- if (max_cpus == 0)
- break;
if (cpu == smp_processor_id())
continue;
@@ -686,7 +677,6 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
continue;
set_cpu_present(cpu, true);
- max_cpus--;
}
}
--
1.7.9.5
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 5/5] arm64: Fix behavior of maxcpus=N Suzuki K Poulose <suzuki.poulose@arm.com> - 2016-04-06 13:30 +0200
Re: [PATCH 5/5] arm64: Fix behavior of maxcpus=N James Morse <james.morse@arm.com> - 2016-04-07 11:30 +0200
Re: [PATCH 5/5] arm64: Fix behavior of maxcpus=N Suzuki K Poulose <Suzuki.Poulose@arm.com> - 2016-04-07 11:30 +0200
[UPDATED] [PATCH 5/5] arm64: Fix behavior of maxcpus=N Suzuki K Poulose <suzuki.poulose@arm.com> - 2016-04-07 12:10 +0200
csiph-web