MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-nios2nommu / preem_latency.h
blob6defb5c28290fea18e65e63c7ef9dd741d4b9c43
1 #ifndef _ASM_PREEM_LATENCY_H
2 #define _ASM_PREEM_LATENCY_H
4 /*--------------------------------------------------------------------
6 * include/asm-nios2nommu/preem_latency.h
8 * timing support for preempt-stats patch
10 * Derived from various works, Alpha, ix86, M68K, Sparc, ...et al
12 * Copyright (C) 2004 Microtronix Datacom Ltd
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
25 * Jan/20/2004 dgt NiosII
27 ---------------------------------------------------------------------*/
30 #include <asm/nios.h>
32 #define readclock(low) \
33 do {\
34 *(volatile unsigned long *)na_Counter_64_bit=1; \
35 low=*(volatile unsigned long *)na_Counter_64_bit; \
36 } while (0)
37 #define readclock_init()
39 #endif /* _ASM_PREEM_LATENCY_H */