summaryrefslogtreecommitdiffstats
path: root/include/asm-ia64/timex.h
blob: d8d60cf24e8093470017e2b66ae4703b48394afe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _ASM_IA64_TIMEX_H
#define _ASM_IA64_TIMEX_H

/*
 * Copyright (C) 1998, 1999 Hewlett-Packard Co
 * Copyright (C) 1998, 1999 David Mosberger-Tang <davidm@hpl.hp.com>
 */

#define CLOCK_TICK_RATE		1193180	/* Underlying HZ XXX fix me! */

typedef unsigned long cycles_t;
extern cycles_t cacheflush_time;

static inline cycles_t
get_cycles (void)
{
	cycles_t ret;

	__asm__ __volatile__ ("mov %0=ar.itc" : "=r"(ret));
	return ret;
}

#endif /* _ASM_IA64_TIMEX_H */