diff options
author | Erik Schnetter <schnetter@gmail.com> | 2012-12-31 09:35:29 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2012-12-31 09:35:29 -0500 |
commit | 79db9ee2af670c5fe440349ea7c21a26888686fb (patch) | |
tree | 8a7daad1dd51062a9e996b8df2a8e882a1e1147c /Carpet/CycleClock | |
parent | 98385497f0d6fd8593cfc5e9ea54e18d1be5973c (diff) |
CycleClock: Support Blue Gene/Q
Diffstat (limited to 'Carpet/CycleClock')
-rw-r--r-- | Carpet/CycleClock/src/cycle.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Carpet/CycleClock/src/cycle.h b/Carpet/CycleClock/src/cycle.h index 76b6146f7..20de8755b 100644 --- a/Carpet/CycleClock/src/cycle.h +++ b/Carpet/CycleClock/src/cycle.h @@ -512,3 +512,19 @@ INLINE_ELAPSED(inline) #define HAVE_TICK_COUNTER #endif #endif /* HAVE_MIPS_ZBUS_TIMER */ + +/*----------------------------------------------------------------*/ +/* Blue Gene/Q */ +#if defined(__bgq__) && !defined(HAVE_TICK_COUNTER) +#include <hwi/include/bqc/A2_inlines.h> +typedef uint64_t ticks; + +static __inline__ ticks getticks(void) +{ + return GetTimeBase(); +} + +INLINE_ELAPSED(__inline__) + +#define HAVE_TICK_COUNTER +#endif |