blob: 29aa6d0752b9130219ae4a339d5423a9bef12baa [file] [log] [blame]
H. Peter Anvin1965aae2008-10-22 22:26:29 -07001#ifndef _ASM_X86_CPU_H
2#define _ASM_X86_CPU_H
Linus Torvalds1da177e2005-04-16 15:20:36 -07003
4#include <linux/device.h>
5#include <linux/cpu.h>
6#include <linux/topology.h>
7#include <linux/nodemask.h>
Zwane Mwaikambof3705132005-06-25 14:54:50 -07008#include <linux/percpu.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07009
Jaswinder Singh Rajput6e5385d2009-01-07 18:11:35 +053010#ifdef CONFIG_SMP
11
12extern void prefill_possible_map(void);
13
14#else /* CONFIG_SMP */
15
16static inline void prefill_possible_map(void) {}
17
18#endif /* CONFIG_SMP */
19
travis@sgi.com30964d52008-01-30 13:33:11 +010020struct x86_cpu {
Linus Torvalds1da177e2005-04-16 15:20:36 -070021 struct cpu cpu;
22};
Alexander van Heukelumd9874022008-02-01 17:49:43 +010023
Linus Torvalds1da177e2005-04-16 15:20:36 -070024#ifdef CONFIG_HOTPLUG_CPU
Alexander van Heukelumd9874022008-02-01 17:49:43 +010025extern int arch_register_cpu(int num);
Linus Torvalds1da177e2005-04-16 15:20:36 -070026extern void arch_unregister_cpu(int);
27#endif
28
Zwane Mwaikambof3705132005-06-25 14:54:50 -070029DECLARE_PER_CPU(int, cpu_state);
H. Peter Anvin1965aae2008-10-22 22:26:29 -070030#endif /* _ASM_X86_CPU_H */