aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CycleClock
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CycleClock')
-rw-r--r--Carpet/CycleClock/src/cycle.h16
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