]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/x86/kernel/smpboot.c
x86: make x86_64 accept the max_cpus parameter
[mirror_ubuntu-artful-kernel.git] / arch / x86 / kernel / smpboot.c
index c35cd319d1ed3dcda873adbbee4d8c729b1c0a4e..34c31178041b21d4fb830bbef58c2efeade44931 100644 (file)
@@ -268,3 +268,15 @@ void __cpu_die(unsigned int cpu)
 }
 #endif
 
+/*
+ * If the BIOS enumerates physical processors before logical,
+ * maxcpus=N at enumeration-time can be used to disable HT.
+ */
+static int __init parse_maxcpus(char *arg)
+{
+       extern unsigned int maxcpus;
+
+       maxcpus = simple_strtoul(arg, NULL, 0);
+       return 0;
+}
+early_param("maxcpus", parse_maxcpus);