diff options
author | Glauber Costa <gcosta@redhat.com> | 2008-03-03 12:13:08 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:56 -0400 |
commit | 89b08200ad8bc8fb860da218c4f3bcc292bf286c (patch) | |
tree | e298a805491494fef4083bd452fe5e9b712626d5 /arch/x86/kernel/smpboot.c | |
parent | 69c18c15d39c4622c6e2f97e5db4d8c9c43adaaa (diff) |
x86: make x86_64 accept the max_cpus parameter
The parameter passing parsing is done in the common smpboot.c
Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r-- | arch/x86/kernel/smpboot.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index c35cd319d1ed..34c31178041b 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -268,3 +268,15 @@ void __cpu_die(unsigned int cpu) | |||
268 | } | 268 | } |
269 | #endif | 269 | #endif |
270 | 270 | ||
271 | /* | ||
272 | * If the BIOS enumerates physical processors before logical, | ||
273 | * maxcpus=N at enumeration-time can be used to disable HT. | ||
274 | */ | ||
275 | static int __init parse_maxcpus(char *arg) | ||
276 | { | ||
277 | extern unsigned int maxcpus; | ||
278 | |||
279 | maxcpus = simple_strtoul(arg, NULL, 0); | ||
280 | return 0; | ||
281 | } | ||
282 | early_param("maxcpus", parse_maxcpus); | ||