Module: xenomai-forge
Branch: master
Commit: 95f6ce112ac58cfe3a0a344756bc015b897b9ab0
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=95f6ce112ac58cfe3a0a344756bc015b897b9ab0

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Thu Dec 26 22:25:10 2013 +0100

cobalt/timer: return overruns on 64 bits

---

 include/cobalt/kernel/timer.h |    2 +-
 kernel/cobalt/timer.c         |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/cobalt/kernel/timer.h b/include/cobalt/kernel/timer.h
index f21ba93..21d4863 100644
--- a/include/cobalt/kernel/timer.h
+++ b/include/cobalt/kernel/timer.h
@@ -420,7 +420,7 @@ void xntimer_init_proc(void);
 
 void xntimer_cleanup_proc(void);
 
-unsigned long xntimer_get_overruns(struct xntimer *timer, xnticks_t now);
+unsigned long long xntimer_get_overruns(struct xntimer *timer, xnticks_t now);
 
 #ifdef CONFIG_SMP
 
diff --git a/kernel/cobalt/timer.c b/kernel/cobalt/timer.c
index ac57026..5c1541c 100644
--- a/kernel/cobalt/timer.c
+++ b/kernel/cobalt/timer.c
@@ -520,11 +520,11 @@ EXPORT_SYMBOL_GPL(__xntimer_migrate);
  *
  * @return the number of overruns of @a timer at date @a now
  */
-unsigned long xntimer_get_overruns(struct xntimer *timer, xnticks_t now)
+unsigned long long xntimer_get_overruns(struct xntimer *timer, xnticks_t now)
 {
        xnticks_t period = xntimer_interval(timer);
        xnsticks_t delta = now - timer->pexpect;
-       unsigned long overruns = 0;
+       unsigned long long overruns = 0;
 
        if (unlikely(delta >= (xnsticks_t) period)) {
                overruns = xnarch_div64(delta, period);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to