api.h 473 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. #ifndef _ASM_UM_FPU_API_H
  3. #define _ASM_UM_FPU_API_H
  4. #include <linux/types.h>
  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. #define kernel_fpu_begin() (void)0
  11. #define kernel_fpu_end() (void)0
  12. static inline bool irq_fpu_usable(void)
  13. {
  14. return true;
  15. }
  16. #endif