1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <linux/kernel.h>
6 #include <asm/cpu-info.h>
8 #ifdef CONFIG_MIPS_FP_SUPPORT
10 extern int mips_fpu_disabled
;
12 int __cpu_has_fpu(void);
13 void cpu_set_fpu_opts(struct cpuinfo_mips
*c
);
14 void cpu_set_nofpu_opts(struct cpuinfo_mips
*c
);
16 #else /* !CONFIG_MIPS_FP_SUPPORT */
18 #define mips_fpu_disabled 1
20 static inline unsigned long cpu_get_fpu_id(void)
25 static inline int __cpu_has_fpu(void)
30 static inline void cpu_set_fpu_opts(struct cpuinfo_mips
*c
)
35 static inline void cpu_set_nofpu_opts(struct cpuinfo_mips
*c
)
40 #endif /* CONFIG_MIPS_FP_SUPPORT */