xref: /linux/arch/um/include/asm/fpu/api.h (revision d99ff463ecf651437e9e4abe68f331dfb6b5bd9d)
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 /* Copyright (c) 2020 Cambridge Greys Ltd
6  * Copyright (c) 2020 Red Hat Inc.
7  * A set of "dummy" defines to allow the direct inclusion
8  * of x86 optimized copy, xor, etc routines into the
9  * UML code tree. */
10 
11 #define kernel_fpu_begin() (void)0
12 #define kernel_fpu_end() (void)0
13 
14 static inline bool irq_fpu_usable(void)
15 {
16 	return true;
17 }
18 
19 
20 #endif
21