vclock_gettime.c 482 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved.
  3. */
  4. #define BUILD_VDSO32
  5. #ifndef CONFIG_CC_OPTIMIZE_FOR_SIZE
  6. #undef CONFIG_OPTIMIZE_INLINING
  7. #endif
  8. #ifdef CONFIG_SPARC64
  9. /*
  10. * in case of a 32 bit VDSO for a 64 bit kernel fake a 32 bit kernel
  11. * configuration
  12. */
  13. #undef CONFIG_64BIT
  14. #undef CONFIG_SPARC64
  15. #define BUILD_VDSO32_64
  16. #define CONFIG_32BIT
  17. #undef CONFIG_QUEUED_RWLOCKS
  18. #undef CONFIG_QUEUED_SPINLOCKS
  19. #endif
  20. #include "../vclock_gettime.c"