vgtod.h 518 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_X86_VGTOD_H
  3. #define _ASM_X86_VGTOD_H
  4. /*
  5. * This check is required to prevent ARCH=um to include
  6. * unwanted headers.
  7. */
  8. #ifdef CONFIG_GENERIC_GETTIMEOFDAY
  9. #include <linux/compiler.h>
  10. #include <asm/clocksource.h>
  11. #include <vdso/datapage.h>
  12. #include <vdso/helpers.h>
  13. #include <uapi/linux/time.h>
  14. #ifdef BUILD_VDSO32_64
  15. typedef u64 gtod_long_t;
  16. #else
  17. typedef unsigned long gtod_long_t;
  18. #endif
  19. #endif /* CONFIG_GENERIC_GETTIMEOFDAY */
  20. #endif /* _ASM_X86_VGTOD_H */