aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/smpboot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index fd933b5465b6..e47bfac70c38 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -1452,7 +1452,8 @@ static int __init parse_maxcpus(char *arg)
1452{ 1452{
1453 extern unsigned int maxcpus; 1453 extern unsigned int maxcpus;
1454 1454
1455 maxcpus = simple_strtoul(arg, NULL, 0); 1455 if (arg)
1456 maxcpus = simple_strtoul(arg, NULL, 0);
1456 return 0; 1457 return 0;
1457} 1458}
1458early_param("maxcpus", parse_maxcpus); 1459early_param("maxcpus", parse_maxcpus);