.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify |
---|
5 | | - * it under the terms of the GNU General Public License version 2 and |
---|
6 | | - * only version 2 as published by the Free Software Foundation. |
---|
7 | | - * |
---|
8 | | - * This program is distributed in the hope that it will be useful, |
---|
9 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
10 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
11 | | - * GNU General Public License for more details. |
---|
12 | | - * |
---|
13 | | - * You should have received a copy of the GNU General Public License |
---|
14 | | - * along with this program; if not, write to the Free Software |
---|
15 | | - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
---|
16 | | - * 02110-1301, USA. |
---|
17 | 4 | */ |
---|
18 | 5 | |
---|
19 | 6 | #ifndef _ASM_TIMEX_H |
---|
20 | 7 | #define _ASM_TIMEX_H |
---|
21 | 8 | |
---|
22 | 9 | #include <asm-generic/timex.h> |
---|
23 | | -#include <asm/timer-regs.h> |
---|
| 10 | +#include <asm/hexagon_vm.h> |
---|
24 | 11 | |
---|
25 | 12 | /* Using TCX0 as our clock. CLOCK_TICK_RATE scheduled to be removed. */ |
---|
26 | | -#define CLOCK_TICK_RATE TCX0_CLK_RATE |
---|
| 13 | +#define CLOCK_TICK_RATE 19200 |
---|
27 | 14 | |
---|
28 | 15 | #define ARCH_HAS_READ_CURRENT_TIMER |
---|
29 | 16 | |
---|
30 | 17 | static inline int read_current_timer(unsigned long *timer_val) |
---|
31 | 18 | { |
---|
32 | | - *timer_val = (unsigned long) __vmgettime(); |
---|
| 19 | + *timer_val = __vmgettime(); |
---|
33 | 20 | return 0; |
---|
34 | 21 | } |
---|
35 | 22 | |
---|