Module: xenomai-2.5
Branch: master
Commit: 82c22c0c34c4ddfe43f6b23c30bf81988673e84b
URL:    
http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=82c22c0c34c4ddfe43f6b23c30bf81988673e84b

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Mar  8 12:37:04 2010 +0100

arm: initialize clockfreq value

---

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

diff --git a/ksrc/arch/arm/hal.c b/ksrc/arch/arm/hal.c
index 3faa75d..df63010 100644
--- a/ksrc/arch/arm/hal.c
+++ b/ksrc/arch/arm/hal.c
@@ -269,15 +269,16 @@ RTHAL_DECLARE_DOMAIN(rthal_domain_entry);
 
 int rthal_arch_init(void)
 {
-    if (rthal_cpufreq_arg == 0)
-        /* The CPU frequency is expressed as the timebase frequency
-           for this port. */
-        rthal_cpufreq_arg = (unsigned long)rthal_get_cpufreq();
+       if (rthal_cpufreq_arg == 0)
+               rthal_cpufreq_arg = rthal_get_cpufreq();
 
-    if (rthal_timerfreq_arg == 0)
-        rthal_timerfreq_arg = rthal_get_timerfreq();
+       if (rthal_timerfreq_arg == 0)
+               rthal_timerfreq_arg = rthal_get_timerfreq();
 
-    return 0;
+       if (rthal_clockfreq_arg == 0)
+               rthal_clockfreq_arg = rthal_get_clockfreq();
+
+       return 0;
 }
 
 void rthal_arch_cleanup(void)


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

Reply via email to