2008-10-23 13:26:29 +08:00
|
|
|
#ifndef _ASM_X86_CPU_H
|
|
|
|
#define _ASM_X86_CPU_H
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
#include <linux/device.h>
|
|
|
|
#include <linux/cpu.h>
|
|
|
|
#include <linux/topology.h>
|
|
|
|
#include <linux/nodemask.h>
|
2005-06-26 05:54:50 +08:00
|
|
|
#include <linux/percpu.h>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2008-01-30 20:33:11 +08:00
|
|
|
struct x86_cpu {
|
2005-04-17 06:20:36 +08:00
|
|
|
struct cpu cpu;
|
|
|
|
};
|
2008-02-02 00:49:43 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
#ifdef CONFIG_HOTPLUG_CPU
|
2008-02-02 00:49:43 +08:00
|
|
|
extern int arch_register_cpu(int num);
|
2005-04-17 06:20:36 +08:00
|
|
|
extern void arch_unregister_cpu(int);
|
|
|
|
#endif
|
|
|
|
|
2005-06-26 05:54:50 +08:00
|
|
|
DECLARE_PER_CPU(int, cpu_state);
|
2008-10-23 13:26:29 +08:00
|
|
|
#endif /* _ASM_X86_CPU_H */
|