1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 #ifndef _ASM_UM_FPU_API_H
3 #define _ASM_UM_FPU_API_H
4 
5 #include <linux/types.h>
6 
7 /* Copyright (c) 2020 Cambridge Greys Ltd
8  * Copyright (c) 2020 Red Hat Inc.
9  * A set of "dummy" defines to allow the direct inclusion
10  * of x86 optimized copy, xor, etc routines into the
11  * UML code tree. */
12 
13 #define kernel_fpu_begin() (void)0
14 #define kernel_fpu_end() (void)0
15 
16 static inline bool irq_fpu_usable(void)
17 {
18 	return true;
19 }
20 
21 
22 #endif
23