summaryrefslogtreecommitdiffstats
path: root/include/clock.h
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2012-06-28 22:32:32 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2012-06-29 10:19:58 +0200
commite172909335b6238fca9d2f3f98f4de8331ed1501 (patch)
treeb7fc6f66e137eb4b60b75335d0d73ccb65c4cd2a /include/clock.h
parent1d8134c8d29560731d7c13ea4b97023799c9f380 (diff)
downloadbarebox-e172909335b6238fca9d2f3f98f4de8331ed1501.tar.gz
barebox-e172909335b6238fca9d2f3f98f4de8331ed1501.tar.xz
clocksource: move the NSEC_PER_SEC constant to common header
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
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 123f8747a8..c01a8d00ab 100644
--- a/include/clock.h
+++ b/include/clock.h
@@ -3,6 +3,8 @@
#ifndef CLOCK_H
#define CLOCK_H
+#include <linux/time.h>
+
#define CLOCKSOURCE_MASK(bits) (uint64_t)((bits) < 64 ? ((1ULL<<(bits))-1) : -1)
struct clocksource {