blob: 7c3b3671d6c25eba4be8cb5275b6f2e4c960921a [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
Russell King4baa9922008-08-02 10:55:55 +01003 * arch/arm/include/asm/timex.h
Linus Torvalds1da177e2005-04-16 15:20:36 -07004 *
5 * Copyright (C) 1997,1998 Russell King
6 *
Linus Torvalds1da177e2005-04-16 15:20:36 -07007 * Architecture Specific TIME specifications
8 */
9#ifndef _ASMARM_TIMEX_H
10#define _ASMARM_TIMEX_H
11
Linus Torvalds1da177e2005-04-16 15:20:36 -070012typedef unsigned long cycles_t;
Will Deacon923df96b2012-07-06 15:46:45 +010013#define get_cycles() ({ cycles_t c; read_current_timer(&c) ? 0 : c; })
Linus Torvalds1da177e2005-04-16 15:20:36 -070014
15#endif