clocksource.h 884 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (C) 2015 Imagination Technologies
  3. * Author: Alex Smith <alex.smith@imgtec.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of the GNU General Public License as published by the
  7. * Free Software Foundation; either version 2 of the License, or (at your
  8. * option) any later version.
  9. */
  10. #ifndef __ASM_CLOCKSOURCE_H
  11. #define __ASM_CLOCKSOURCE_H
  12. #include <linux/types.h>
  13. /* VDSO clocksources. */
  14. #define VDSO_CLOCK_NONE 0 /* No suitable clocksource. */
  15. #define VDSO_CLOCK_R4K 1 /* Use the coprocessor 0 count. */
  16. #define VDSO_CLOCK_GIC 2 /* Use the GIC. */
  17. /**
  18. * struct arch_clocksource_data - Architecture-specific clocksource information.
  19. * @vdso_clock_mode: Method the VDSO should use to access the clocksource.
  20. */
  21. struct arch_clocksource_data {
  22. u8 vdso_clock_mode;
  23. };
  24. #endif /* __ASM_CLOCKSOURCE_H */