hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/mips/include/asm/bugs.h
....@@ -26,9 +26,8 @@
2626
2727 static inline void check_bugs_early(void)
2828 {
29
-#ifdef CONFIG_64BIT
30
- check_bugs64_early();
31
-#endif
29
+ if (IS_ENABLED(CONFIG_CPU_R4X00_BUGS64))
30
+ check_bugs64_early();
3231 }
3332
3433 static inline void check_bugs(void)
....@@ -37,19 +36,18 @@
3736
3837 cpu_data[cpu].udelay_val = loops_per_jiffy;
3938 check_bugs32();
40
-#ifdef CONFIG_64BIT
41
- check_bugs64();
42
-#endif
39
+
40
+ if (IS_ENABLED(CONFIG_CPU_R4X00_BUGS64))
41
+ check_bugs64();
4342 }
4443
4544 static inline int r4k_daddiu_bug(void)
4645 {
47
-#ifdef CONFIG_64BIT
46
+ if (!IS_ENABLED(CONFIG_CPU_R4X00_BUGS64))
47
+ return 0;
48
+
4849 WARN_ON(daddiu_bug < 0);
4950 return daddiu_bug != 0;
50
-#else
51
- return 0;
52
-#endif
5351 }
5452
5553 #endif /* _ASM_BUGS_H */