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-mips / bugs.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-08-11  |  515 b   |  29 lines

  1. /*
  2.  * This is included by init/main.c to check for architecture-dependent bugs.
  3.  *
  4.  * Needs:
  5.  *    void check_bugs(void);
  6.  */
  7. #ifndef _ASM_BUGS_H
  8. #define _ASM_BUGS_H
  9.  
  10. #include <linux/delay.h>
  11. #include <asm/cpu.h>
  12. #include <asm/cpu-info.h>
  13.  
  14. extern void check_bugs32(void);
  15. extern void check_bugs64(void);
  16.  
  17. static inline void check_bugs(void)
  18. {
  19.     unsigned int cpu = smp_processor_id();
  20.  
  21.     cpu_data[cpu].udelay_val = loops_per_jiffy;
  22.     check_bugs32();
  23. #ifdef CONFIG_64BIT
  24.     check_bugs64();
  25. #endif
  26. }
  27.  
  28. #endif /* _ASM_BUGS_H */
  29.