Module: xenomai-rpm
Branch: for-upstream
Commit: 9f302568814bd9467c7acbbb2ece8e24a4c74bc0
URL:    
http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=9f302568814bd9467c7acbbb2ece8e24a4c74bc0

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Mar  8 12:12:42 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..3b2ca53 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 = (unsigned long)rthal_get_cpufreq();
 
-    if (rthal_timerfreq_arg == 0)
-        rthal_timerfreq_arg = rthal_get_timerfreq();
+       if (rthal_timerfreq_arg == 0)
+               rthal_timerfreq_arg = (unsigned long)rthal_get_timerfreq();
 
-    return 0;
+       if (rthal_clockfreq_arg == 0)
+               rthal_clockfreq_arg = (unsigned long)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