Commit | Line | Data |
---|---|---|
1da177e4 | 1 | /* |
4baa9922 | 2 | * arch/arm/include/asm/timex.h |
1da177e4 LT |
3 | * |
4 | * Copyright (C) 1997,1998 Russell King | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License version 2 as | |
8 | * published by the Free Software Foundation. | |
9 | * | |
10 | * Architecture Specific TIME specifications | |
11 | */ | |
12 | #ifndef _ASMARM_TIMEX_H | |
13 | #define _ASMARM_TIMEX_H | |
14 | ||
387798b3 RH |
15 | #ifdef CONFIG_ARCH_MULTIPLATFORM |
16 | #define CLOCK_TICK_RATE 1000000 | |
17 | #else | |
a09e64fb | 18 | #include <mach/timex.h> |
387798b3 | 19 | #endif |
1da177e4 LT |
20 | |
21 | typedef unsigned long cycles_t; | |
923df96b | 22 | #define get_cycles() ({ cycles_t c; read_current_timer(&c) ? 0 : c; }) |
1da177e4 LT |
23 | |
24 | #endif |