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

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

x86: initialize clockfreq value

---

 ksrc/arch/x86/hal_32.c |    3 +++
 ksrc/arch/x86/hal_64.c |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/ksrc/arch/x86/hal_32.c b/ksrc/arch/x86/hal_32.c
index 026b03f..5f5ff2c 100644
--- a/ksrc/arch/x86/hal_32.c
+++ b/ksrc/arch/x86/hal_32.c
@@ -365,6 +365,9 @@ int rthal_arch_init(void)
        rthal_setup_8254_tsc();
 #endif /* CONFIG_X86_TSC */
 
+       if (rthal_clockfreq_arg == 0)
+               rthal_clockfreq_arg = rthal_get_clockfreq();
+
        return 0;
 }
 
diff --git a/ksrc/arch/x86/hal_64.c b/ksrc/arch/x86/hal_64.c
index 91d3715..aa9e16c 100644
--- a/ksrc/arch/x86/hal_64.c
+++ b/ksrc/arch/x86/hal_64.c
@@ -79,6 +79,9 @@ int rthal_arch_init(void)
                /* FIXME: 4Ghz barrier is close... */
                rthal_cpufreq_arg = rthal_get_cpufreq();
 
+       if (rthal_clockfreq_arg == 0)
+               rthal_clockfreq_arg = rthal_get_clockfreq();
+
        return 0;
 }
 


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

Reply via email to