drm/modes: Fix drm_mode_vrefres() docs
[drm/drm-misc.git] / arch / mips / kernel / fpu-probe.h
blob951ce50890d09b833bd72b195042d4dc3bcade11
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <linux/kernel.h>
5 #include <asm/cpu.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)
22 return FPIR_IMP_NONE;
25 static inline int __cpu_has_fpu(void)
27 return 0;
30 static inline void cpu_set_fpu_opts(struct cpuinfo_mips *c)
32 /* no-op */
35 static inline void cpu_set_nofpu_opts(struct cpuinfo_mips *c)
37 /* no-op */
40 #endif /* CONFIG_MIPS_FP_SUPPORT */