blob: 0d7f9c1f55469e4c7d9700ba44bb3ad75b787ba6 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
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
Ralf Baechle38551572005-04-13 17:36:49 +000010#include <linux/delay.h>
Ralf Baechlef03da6e2005-04-13 13:37:32 +000011#include <asm/cpu.h>
12#include <asm/cpu-info.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
14extern void check_bugs32(void);
15extern void check_bugs64(void);
16
17static inline void check_bugs(void)
18{
Ralf Baechlef03da6e2005-04-13 13:37:32 +000019 unsigned int cpu = smp_processor_id();
20
21 cpu_data[cpu].udelay_val = loops_per_jiffy;
Linus Torvalds1da177e2005-04-16 15:20:36 -070022 check_bugs32();
Ralf Baechle875d43e2005-09-03 15:56:16 -070023#ifdef CONFIG_64BIT
Linus Torvalds1da177e2005-04-16 15:20:36 -070024 check_bugs64();
25#endif
26}
27
28#endif /* _ASM_BUGS_H */