blob: f958e7e49c052a5916601420b7eb2f0b195f3005 [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
Jaswinder Singh Rajputf472cdb2009-01-07 21:34:25 +053018#define stack_smp_processor_id() 0
19
Jaswinder Singh Rajput6e5385d2009-01-07 18:11:35 +053020#endif /* CONFIG_SMP */
21
travis@sgi.com30964d52008-01-30 13:33:11 +010022struct x86_cpu {
Linus Torvalds1da177e2005-04-16 15:20:36 -070023 struct cpu cpu;
24};
Alexander van Heukelumd9874022008-02-01 17:49:43 +010025
Linus Torvalds1da177e2005-04-16 15:20:36 -070026#ifdef CONFIG_HOTPLUG_CPU
Alexander van Heukelumd9874022008-02-01 17:49:43 +010027extern int arch_register_cpu(int num);
Linus Torvalds1da177e2005-04-16 15:20:36 -070028extern void arch_unregister_cpu(int);
29#endif
30
Zwane Mwaikambof3705132005-06-25 14:54:50 -070031DECLARE_PER_CPU(int, cpu_state);
H. Peter Anvin1965aae2008-10-22 22:26:29 -070032#endif /* _ASM_X86_CPU_H */