Module: xenomai-head
Branch: master
Commit: 45f21a3f12702dc4e6a85bd42eeef0a0ed203f4d
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=45f21a3f12702dc4e6a85bd42eeef0a0ed203f4d

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Thu May 12 00:04:24 2011 +0200

arm: fix rthal_timer_request

Without CONFIG_GENERIC_CLOCKEVENTS, no host timer was started
upon Xenomai startup, whereas one is needed.

---

 ksrc/arch/arm/hal.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ksrc/arch/arm/hal.c b/ksrc/arch/arm/hal.c
index 4268778..62791dd 100644
--- a/ksrc/arch/arm/hal.c
+++ b/ksrc/arch/arm/hal.c
@@ -322,7 +322,7 @@ int rthal_timer_request(void (*handler)(void), int cpu)
 
        rthal_timer_set_oneshot(1);
 
-       return 0;
+       return 1000000000UL / HZ;
 }
 
 void rthal_timer_release(int cpu)


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to