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

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

blackfin: initialize clockfreq value

---

 ksrc/arch/blackfin/hal.c |   18 ++++++++----------
 1 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/ksrc/arch/blackfin/hal.c b/ksrc/arch/blackfin/hal.c
index f5880cd..6dc5513 100644
--- a/ksrc/arch/blackfin/hal.c
+++ b/ksrc/arch/blackfin/hal.c
@@ -416,17 +416,15 @@ RTHAL_DECLARE_DOMAIN(rthal_domain_entry);
 int rthal_arch_init(void)
 {
        if (rthal_cpufreq_arg == 0)
-               rthal_cpufreq_arg = (unsigned long)rthal_get_cpufreq();
+               rthal_cpufreq_arg = rthal_get_cpufreq();
 
-#ifndef CONFIG_GENERIC_CLOCKEVENTS
-       if (rthal_timerfreq_arg == 0)
-               /*
-                * Define the global timer frequency as being the one
-                * of the core timer, which is running at the core
-                * clock (CCLK) rate.
-                */
-               rthal_timerfreq_arg = get_cclk();
-#endif
+       if (rthal_clockfreq_arg == 0)
+               rthal_clockfreq_arg = rthal_get_clockfreq();
+
+       /*
+        * Timer frequency is determined later when grabbing the
+        * system timer.
+        */
 
        return 0;
 }


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

Reply via email to