|
|
@@ -15,6 +15,28 @@
|
|
|
#include <linux/stop_machine.h>
|
|
|
#include <linux/mutex.h>
|
|
|
|
|
|
+/*
|
|
|
+ * Represents all cpu's present in the system
|
|
|
+ * In systems capable of hotplug, this map could dynamically grow
|
|
|
+ * as new cpu's are detected in the system via any platform specific
|
|
|
+ * method, such as ACPI for e.g.
|
|
|
+ */
|
|
|
+cpumask_t cpu_present_map __read_mostly;
|
|
|
+EXPORT_SYMBOL(cpu_present_map);
|
|
|
+
|
|
|
+#ifndef CONFIG_SMP
|
|
|
+
|
|
|
+/*
|
|
|
+ * Represents all cpu's that are currently online.
|
|
|
+ */
|
|
|
+cpumask_t cpu_online_map __read_mostly = CPU_MASK_ALL;
|
|
|
+EXPORT_SYMBOL(cpu_online_map);
|
|
|
+
|
|
|
+cpumask_t cpu_possible_map __read_mostly = CPU_MASK_ALL;
|
|
|
+EXPORT_SYMBOL(cpu_possible_map);
|
|
|
+
|
|
|
+#else /* CONFIG_SMP */
|
|
|
+
|
|
|
/* Serializes the updates to cpu_online_map, cpu_present_map */
|
|
|
static DEFINE_MUTEX(cpu_add_remove_lock);
|
|
|
|
|
|
@@ -403,3 +425,5 @@ void __ref enable_nonboot_cpus(void)
|
|
|
cpu_maps_update_done();
|
|
|
}
|
|
|
#endif /* CONFIG_PM_SLEEP_SMP */
|
|
|
+
|
|
|
+#endif /* CONFIG_SMP */
|