cpu.h 548 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _ASM_X86_CPU_H
  2. #define _ASM_X86_CPU_H
  3. #include <linux/device.h>
  4. #include <linux/cpu.h>
  5. #include <linux/topology.h>
  6. #include <linux/nodemask.h>
  7. #include <linux/percpu.h>
  8. #ifdef CONFIG_SMP
  9. extern void prefill_possible_map(void);
  10. #else /* CONFIG_SMP */
  11. static inline void prefill_possible_map(void) {}
  12. #endif /* CONFIG_SMP */
  13. struct x86_cpu {
  14. struct cpu cpu;
  15. };
  16. #ifdef CONFIG_HOTPLUG_CPU
  17. extern int arch_register_cpu(int num);
  18. extern void arch_unregister_cpu(int);
  19. #endif
  20. DECLARE_PER_CPU(int, cpu_state);
  21. #endif /* _ASM_X86_CPU_H */