home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / src / linux-headers-2.6.17-6 / include / asm-um / smp.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-08-11  |  524 b   |  30 lines

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