summaryrefslogtreecommitdiffstats
path: root/include/clock.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clock.h')
-rw-r--r--include/clock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clock.h b/include/clock.h
index 278f6e87b2..b9acdb9b69 100644
--- a/include/clock.h
+++ b/include/clock.h
@@ -3,6 +3,8 @@
#ifndef CLOCK_H
#define CLOCK_H
+#define CLOCKSOURCE_MASK(bits) (uint64_t)((bits) < 64 ? ((1ULL<<(bits))-1) : -1)
+
struct clocksource {
uint32_t shift;
uint32_t mult;