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