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