smp.h 550 B

123456789101112131415161718192021222324252627282930
  1. #ifndef __UM_SMP_H
  2. #define __UM_SMP_H
  3. #ifdef CONFIG_SMP
  4. #include "linux/config.h"
  5. #include "linux/bitops.h"
  6. #include "asm/current.h"
  7. #include "linux/cpumask.h"
  8. #define raw_smp_processor_id() (current_thread->cpu)
  9. #define cpu_logical_map(n) (n)
  10. #define cpu_number_map(n) (n)
  11. #define PROC_CHANGE_PENALTY 15 /* Pick a number, any number */
  12. extern int hard_smp_processor_id(void);
  13. #define NO_PROC_ID -1
  14. extern int ncpus;
  15. extern inline void smp_cpus_done(unsigned int maxcpus)
  16. {
  17. }
  18. extern struct task_struct *idle_threads[NR_CPUS];
  19. #endif
  20. #endif