2005-04-17 05:20:36 +07:00
|
|
|
/*
|
2008-08-02 16:55:55 +07:00
|
|
|
* arch/arm/include/asm/timex.h
|
2005-04-17 05:20:36 +07:00
|
|
|
*
|
|
|
|
* Copyright (C) 1997,1998 Russell King
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* Architecture Specific TIME specifications
|
|
|
|
*/
|
|
|
|
#ifndef _ASMARM_TIMEX_H
|
|
|
|
#define _ASMARM_TIMEX_H
|
|
|
|
|
|
|
|
typedef unsigned long cycles_t;
|
2012-07-06 21:46:45 +07:00
|
|
|
#define get_cycles() ({ cycles_t c; read_current_timer(&c) ? 0 : c; })
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
#endif
|