1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2023 SiFive
6 #ifndef _ASM_POWERPC_FPU_H
7 #define _ASM_POWERPC_FPU_H
9 #include <linux/preempt.h>
11 #include <asm/cpu_has_feature.h>
12 #include <asm/switch_to.h>
14 #define kernel_fpu_available() (!cpu_has_feature(CPU_FTR_FPU_UNAVAILABLE))
16 static inline void kernel_fpu_begin(void)
22 static inline void kernel_fpu_end(void)
28 #endif /* ! _ASM_POWERPC_FPU_H */