Files
linux-apfs/arch/x86/include/asm/cpu.h
T

37 lines
679 B
C
Raw Normal View History

2008-10-22 22:26:29 -07:00
#ifndef _ASM_X86_CPU_H
#define _ASM_X86_CPU_H
2005-04-16 15:20:36 -07:00
#include <linux/device.h>
#include <linux/cpu.h>
#include <linux/topology.h>
#include <linux/nodemask.h>
2005-06-25 14:54:50 -07:00
#include <linux/percpu.h>
2005-04-16 15:20:36 -07:00
#ifdef CONFIG_SMP
extern void prefill_possible_map(void);
#else /* CONFIG_SMP */
static inline void prefill_possible_map(void) {}
#define cpu_physical_id(cpu) boot_cpu_physical_apicid
#define safe_smp_processor_id() 0
#define stack_smp_processor_id() 0
#endif /* CONFIG_SMP */
2008-01-30 13:33:11 +01:00
struct x86_cpu {
2005-04-16 15:20:36 -07:00
struct cpu cpu;
};
2005-04-16 15:20:36 -07:00
#ifdef CONFIG_HOTPLUG_CPU
extern int arch_register_cpu(int num);
2005-04-16 15:20:36 -07:00
extern void arch_unregister_cpu(int);
#endif
2005-06-25 14:54:50 -07:00
DECLARE_PER_CPU(int, cpu_state);
2008-10-22 22:26:29 -07:00
#endif /* _ASM_X86_CPU_H */