x86: smp.h move stack_processor_id declartion to cpu.h
[deliverable/linux.git] / arch / x86 / include / asm / cpu.h
CommitLineData
1965aae3
PA
1#ifndef _ASM_X86_CPU_H
2#define _ASM_X86_CPU_H
1da177e4
LT
3
4#include <linux/device.h>
5#include <linux/cpu.h>
6#include <linux/topology.h>
7#include <linux/nodemask.h>
f3705136 8#include <linux/percpu.h>
1da177e4 9
6e5385d4
JSR
10#ifdef CONFIG_SMP
11
12extern void prefill_possible_map(void);
13
14#else /* CONFIG_SMP */
15
16static inline void prefill_possible_map(void) {}
17
f472cdba
JSR
18#define stack_smp_processor_id() 0
19
6e5385d4
JSR
20#endif /* CONFIG_SMP */
21
30964d54 22struct x86_cpu {
1da177e4
LT
23 struct cpu cpu;
24};
d9874026 25
1da177e4 26#ifdef CONFIG_HOTPLUG_CPU
d9874026 27extern int arch_register_cpu(int num);
1da177e4
LT
28extern void arch_unregister_cpu(int);
29#endif
30
f3705136 31DECLARE_PER_CPU(int, cpu_state);
1965aae3 32#endif /* _ASM_X86_CPU_H */
This page took 0.473359 seconds and 5 git commands to generate.