aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/smp.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-19 15:42:03 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-19 15:42:03 +0100
commitbae5675905f402e89b2f3f53a8f72b2bfb1871bb (patch)
tree41ef1b05782cd116d30a14f91a47d261ce559d29 /xen/include/asm-x86/smp.h
parent785effb80af31f3e23985abd2e70efe6fbb4c4b8 (diff)
downloadxen-bae5675905f402e89b2f3f53a8f72b2bfb1871bb.tar.gz
xen-bae5675905f402e89b2f3f53a8f72b2bfb1871bb.tar.bz2
xen-bae5675905f402e89b2f3f53a8f72b2bfb1871bb.zip
x86: Streamline the CPU early boot process.
Mainly this involves getting rid of a bunch of cpumasks and replacing with a single 'cpu_state' enumeration to track progress and allow master-slave handshaking. Cleaning this stuff up is a prerequisite for safely handling slave failure (e.g., out of memory, invalid slave CPU capabilities, ...). This will get fixed up in a future patch. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/include/asm-x86/smp.h')
-rw-r--r--xen/include/asm-x86/smp.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/xen/include/asm-x86/smp.h b/xen/include/asm-x86/smp.h
index 60f516c640..d2a4334ae6 100644
--- a/xen/include/asm-x86/smp.h
+++ b/xen/include/asm-x86/smp.h
@@ -52,9 +52,6 @@ extern u32 cpu_2_logical_apicid[];
#define cpu_physical_id(cpu) x86_cpu_to_apicid[cpu]
-/* State of each CPU. */
-DECLARE_PER_CPU(int, cpu_state);
-
#define cpu_is_offline(cpu) unlikely(!cpu_online(cpu))
extern void cpu_exit_clear(unsigned int cpu);
extern void cpu_uninit(unsigned int cpu);
@@ -67,15 +64,6 @@ int cpu_add(uint32_t apic_id, uint32_t acpi_id, uint32_t pxm);
*/
#define raw_smp_processor_id() (get_processor_id())
-extern cpumask_t cpu_callout_map;
-extern cpumask_t cpu_callin_map;
-
-/* We don't mark CPUs online until __cpu_up(), so we need another measure */
-static inline int num_booting_cpus(void)
-{
- return cpus_weight(cpu_callout_map);
-}
-
#ifdef CONFIG_X86_LOCAL_APIC
static inline int hard_smp_processor_id(void)