[PATCH 2/3] clock: add poller call to is_timeout()

Marc Kleine-Budde mkl at pengutronix.de
Wed Sep 15 03:26:35 EDT 2010


Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
 common/clock.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/common/clock.c b/common/clock.c
index 15df0ab..ec63526 100644
--- a/common/clock.c
+++ b/common/clock.c
@@ -27,6 +27,7 @@
 #include <common.h>
 #include <asm-generic/div64.h>
 #include <clock.h>
+#include <poller.h>
 
 static struct clocksource *current_clock;
 static uint64_t time_ns;
@@ -84,6 +85,8 @@ uint32_t clocksource_hz2mult(uint32_t hz, uint32_t shift_constant)
 
 int is_timeout(uint64_t start_ns, uint64_t time_offset_ns)
 {
+	poller_call();
+
 	if ((int64_t)(start_ns + time_offset_ns - get_time_ns()) < 0)
 		return 1;
 	else
-- 
1.7.0.4




More information about the barebox mailing list