Merge tag 'sched-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / hexagon / include / asm / timex.h
blob78338d8ada83fc0c200dd0c2b50ed5109dc2d965
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
4 */
6 #ifndef _ASM_TIMEX_H
7 #define _ASM_TIMEX_H
9 #include <asm-generic/timex.h>
10 #include <asm/timer-regs.h>
12 /* Using TCX0 as our clock. CLOCK_TICK_RATE scheduled to be removed. */
13 #define CLOCK_TICK_RATE TCX0_CLK_RATE
15 #define ARCH_HAS_READ_CURRENT_TIMER
17 static inline int read_current_timer(unsigned long *timer_val)
19 *timer_val = (unsigned long) __vmgettime();
20 return 0;
23 #endif