|
@@ -1278,12 +1278,20 @@ __init void prefill_possible_map(void)
|
|
int i;
|
|
int i;
|
|
int possible;
|
|
int possible;
|
|
|
|
|
|
|
|
+ /* no processor from mptable or madt */
|
|
|
|
+ if (!num_processors)
|
|
|
|
+ num_processors = 1;
|
|
|
|
+
|
|
|
|
+#ifdef CONFIG_HOTPLUG_CPU
|
|
if (additional_cpus == -1) {
|
|
if (additional_cpus == -1) {
|
|
if (disabled_cpus > 0)
|
|
if (disabled_cpus > 0)
|
|
additional_cpus = disabled_cpus;
|
|
additional_cpus = disabled_cpus;
|
|
else
|
|
else
|
|
additional_cpus = 0;
|
|
additional_cpus = 0;
|
|
}
|
|
}
|
|
|
|
+#else
|
|
|
|
+ additional_cpus = 0;
|
|
|
|
+#endif
|
|
possible = num_processors + additional_cpus;
|
|
possible = num_processors + additional_cpus;
|
|
if (possible > NR_CPUS)
|
|
if (possible > NR_CPUS)
|
|
possible = NR_CPUS;
|
|
possible = NR_CPUS;
|