Adding support for MOXA ART SoC. Testing port of linux-2.6.32.60-moxart.
[linux-3.6.7-moxart.git] / arch / arm / include / asm / timex.h
blobce119442277c4cbcc895a3c10fce03133925853d
1 /*
2 * arch/arm/include/asm/timex.h
4 * Copyright (C) 1997,1998 Russell King
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.
10 * Architecture Specific TIME specifications
12 #ifndef _ASMARM_TIMEX_H
13 #define _ASMARM_TIMEX_H
15 #include <asm/arch_timer.h>
16 #include <mach/timex.h>
18 typedef unsigned long cycles_t;
20 #ifdef ARCH_HAS_READ_CURRENT_TIMER
21 #define get_cycles() ({ cycles_t c; read_current_timer(&c) ? 0 : c; })
22 #else
23 #define get_cycles() (0)
24 #endif
26 #endif