.. | .. |
---|
26 | 26 | |
---|
27 | 27 | static inline void check_bugs_early(void) |
---|
28 | 28 | { |
---|
29 | | -#ifdef CONFIG_64BIT |
---|
30 | | - check_bugs64_early(); |
---|
31 | | -#endif |
---|
| 29 | + if (IS_ENABLED(CONFIG_CPU_R4X00_BUGS64)) |
---|
| 30 | + check_bugs64_early(); |
---|
32 | 31 | } |
---|
33 | 32 | |
---|
34 | 33 | static inline void check_bugs(void) |
---|
.. | .. |
---|
37 | 36 | |
---|
38 | 37 | cpu_data[cpu].udelay_val = loops_per_jiffy; |
---|
39 | 38 | check_bugs32(); |
---|
40 | | -#ifdef CONFIG_64BIT |
---|
41 | | - check_bugs64(); |
---|
42 | | -#endif |
---|
| 39 | + |
---|
| 40 | + if (IS_ENABLED(CONFIG_CPU_R4X00_BUGS64)) |
---|
| 41 | + check_bugs64(); |
---|
43 | 42 | } |
---|
44 | 43 | |
---|
45 | 44 | static inline int r4k_daddiu_bug(void) |
---|
46 | 45 | { |
---|
47 | | -#ifdef CONFIG_64BIT |
---|
| 46 | + if (!IS_ENABLED(CONFIG_CPU_R4X00_BUGS64)) |
---|
| 47 | + return 0; |
---|
| 48 | + |
---|
48 | 49 | WARN_ON(daddiu_bug < 0); |
---|
49 | 50 | return daddiu_bug != 0; |
---|
50 | | -#else |
---|
51 | | - return 0; |
---|
52 | | -#endif |
---|
53 | 51 | } |
---|
54 | 52 | |
---|
55 | 53 | #endif /* _ASM_BUGS_H */ |
---|