blob: 9acc135dad94b6aac6f20c5c02492b20fbac28f3 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Russell King4baa9922008-08-02 10:55:55 +01002 * arch/arm/include/asm/timex.h
Linus Torvalds1da177e2005-04-16 15:20:36 -07003 *
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
Russell Kinga09e64f2008-08-05 16:14:15 +010015#include <mach/timex.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070016
17typedef unsigned long cycles_t;
Stephen Boyd4d84b3b2012-07-26 12:00:03 -070018#define get_cycles() ({ cycles_t c; read_current_timer(&c) ? 0 : c; })
Linus Torvalds1da177e2005-04-16 15:20:36 -070019
20#endif