[Xenomai-git] Philippe Gerum : Tell Linux whenever we failed programming the next host tick event.
Module: xenomai-2.4 Branch: master Commit: 841adc11252d8d1497d3917310569bd0181f27b7 URL: http://git.xenomai.org/?p=xenomai-2.4.git;a=commit;h=841adc11252d8d1497d3917310569bd0181f27b7 Author: Philippe Gerum Date: Sun May 17 23:02:14 2009 +0200 Tell Linux whenever we failed programming the next host tick event. This is required to allow the clockevent machinery to properly resync on the next tick date. --- include/asm-generic/bits/pod.h |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/asm-generic/bits/pod.h b/include/asm-generic/bits/pod.h index 3aaa2b4..98e6840 100644 --- a/include/asm-generic/bits/pod.h +++ b/include/asm-generic/bits/pod.h @@ -62,6 +62,7 @@ static int xnarch_next_htick_shot(unsigned long delay, struct clock_event_device *cdev) { xnsched_t *sched; + int ret; spl_t s; #if !defined(__IPIPE_FEATURE_REQUEST_TICKDEV) && 0 /* Unused. */ @@ -70,10 +71,10 @@ static int xnarch_next_htick_shot(unsigned long delay, struct clock_event_device #endif xnlock_get_irqsave(&nklock, s); sched = xnpod_current_sched(); - xntimer_start(&sched->htimer, delay, XN_INFINITE, XN_RELATIVE); + ret = xntimer_start(&sched->htimer, delay, XN_INFINITE, XN_RELATIVE); xnlock_put_irqrestore(&nklock, s); - return 0; + return ret ? -ETIME : 0; } /*! ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Philippe Gerum : Tell Linux whenever we failed programming the next host tick event.
Module: xenomai-head Branch: master Commit: c9629151fb1f0df289e36bcdf327088fedc90cac URL: http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=c9629151fb1f0df289e36bcdf327088fedc90cac Author: Philippe Gerum Date: Sun May 17 23:02:14 2009 +0200 Tell Linux whenever we failed programming the next host tick event. This is required to allow the clockevent machinery to properly resync on the next tick date. --- include/asm-generic/bits/pod.h |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/asm-generic/bits/pod.h b/include/asm-generic/bits/pod.h index 3cf09ff..6cf2f6e 100644 --- a/include/asm-generic/bits/pod.h +++ b/include/asm-generic/bits/pod.h @@ -62,6 +62,7 @@ static int xnarch_next_htick_shot(unsigned long delay, struct clock_event_device *cdev) { xnsched_t *sched; + int ret; spl_t s; #if !defined(__IPIPE_FEATURE_REQUEST_TICKDEV) && 0 /* Unused. */ @@ -70,10 +71,10 @@ static int xnarch_next_htick_shot(unsigned long delay, struct clock_event_device #endif xnlock_get_irqsave(&nklock, s); sched = xnpod_current_sched(); - xntimer_start(&sched->htimer, delay, XN_INFINITE, XN_RELATIVE); + ret = xntimer_start(&sched->htimer, delay, XN_INFINITE, XN_RELATIVE); xnlock_put_irqrestore(&nklock, s); - return 0; + return ret ? -ETIME : 0; } /*! ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git