timex.h 495 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef _ASM_TIMEX_H
  6. #define _ASM_TIMEX_H
  7. #include <asm-generic/timex.h>
  8. #include <asm/hexagon_vm.h>
  9. /* Using TCX0 as our clock. CLOCK_TICK_RATE scheduled to be removed. */
  10. #define CLOCK_TICK_RATE 19200
  11. #define ARCH_HAS_READ_CURRENT_TIMER
  12. static inline int read_current_timer(unsigned long *timer_val)
  13. {
  14. *timer_val = __vmgettime();
  15. return 0;
  16. }
  17. #endif