bugs.h 541 B

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