2008-10-22 23:26:29 -06:00
|
|
|
#ifndef _ASM_X86_CPU_H
|
|
|
|
#define _ASM_X86_CPU_H
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
#include <linux/device.h>
|
|
|
|
#include <linux/cpu.h>
|
|
|
|
#include <linux/topology.h>
|
|
|
|
#include <linux/nodemask.h>
|
2005-06-25 15:54:50 -06:00
|
|
|
#include <linux/percpu.h>
|
2005-04-16 16:20:36 -06:00
|
|
|
|
2009-01-07 05:41:35 -07:00
|
|
|
#ifdef CONFIG_SMP
|
|
|
|
|
|
|
|
extern void prefill_possible_map(void);
|
|
|
|
|
|
|
|
#else /* CONFIG_SMP */
|
|
|
|
|
|
|
|
static inline void prefill_possible_map(void) {}
|
|
|
|
|
2009-01-07 09:07:33 -07:00
|
|
|
#define cpu_physical_id(cpu) boot_cpu_physical_apicid
|
2009-01-07 09:05:48 -07:00
|
|
|
#define safe_smp_processor_id() 0
|
2009-01-07 09:04:25 -07:00
|
|
|
#define stack_smp_processor_id() 0
|
|
|
|
|
2009-01-07 05:41:35 -07:00
|
|
|
#endif /* CONFIG_SMP */
|
|
|
|
|
2008-01-30 05:33:11 -07:00
|
|
|
struct x86_cpu {
|
2005-04-16 16:20:36 -06:00
|
|
|
struct cpu cpu;
|
|
|
|
};
|
2008-02-01 09:49:43 -07:00
|
|
|
|
2005-04-16 16:20:36 -06:00
|
|
|
#ifdef CONFIG_HOTPLUG_CPU
|
2008-02-01 09:49:43 -07:00
|
|
|
extern int arch_register_cpu(int num);
|
2005-04-16 16:20:36 -06:00
|
|
|
extern void arch_unregister_cpu(int);
|
|
|
|
#endif
|
|
|
|
|
2005-06-25 15:54:50 -06:00
|
|
|
DECLARE_PER_CPU(int, cpu_state);
|
2009-01-07 09:08:59 -07:00
|
|
|
|
2009-01-27 09:13:05 -07:00
|
|
|
extern unsigned int boot_cpu_id;
|
2009-01-07 09:08:59 -07:00
|
|
|
|
2008-10-22 23:26:29 -06:00
|
|
|
#endif /* _ASM_X86_CPU_H */
|