Module: xenomai-2.6
Branch: master
Commit: 3acd5917ce980f3f468cc09c0158227eb59433b6
URL:    
http://git.xenomai.org/?p=xenomai-2.6.git;a=commit;h=3acd5917ce980f3f468cc09c0158227eb59433b6

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Tue Jun  5 20:12:03 2012 +0200

hal/x86: warn user when using a kernel without tsc on a cpu with tsc

---

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

diff --git a/ksrc/arch/x86/hal_32.c b/ksrc/arch/x86/hal_32.c
index 5f58703..36affe6 100644
--- a/ksrc/arch/x86/hal_32.c
+++ b/ksrc/arch/x86/hal_32.c
@@ -296,6 +296,12 @@ void rthal_setup_8254_tsc(void)
        unsigned long flags;
        int count;
 
+#ifdef CONFIG_IPIPE_CORE
+       if (cpu_has_tsc)
+               printk("Xenomai: your configuration has tsc disabled while "
+                      "your cpu has a tsc\nYou would get better performances "
+                      "by enabling tsc in kernel configuration.\n");
+#endif
        rthal_local_irq_save_hw(flags);
 
        outb_p(0x0, PIT_MODE);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to