bugs.h 515 B

12345678910111213141516171819202122232425262728
  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. #include <linux/delay.h>
  10. #include <asm/cpu.h>
  11. #include <asm/cpu-info.h>
  12. extern void check_bugs32(void);
  13. extern void check_bugs64(void);
  14. static inline void check_bugs(void)
  15. {
  16. unsigned int cpu = smp_processor_id();
  17. cpu_data[cpu].udelay_val = loops_per_jiffy;
  18. check_bugs32();
  19. #ifdef CONFIG_64BIT
  20. check_bugs64();
  21. #endif
  22. }
  23. #endif /* _ASM_BUGS_H */