Module: xenomai-head Branch: master Commit: c847aa98f44ba3ba734a373238f572fe8c65bb3b URL: http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=c847aa98f44ba3ba734a373238f572fe8c65bb3b
Author: Philippe Gerum <r...@xenomai.org> Date: Thu Aug 26 17:53:36 2010 +0200 x86: increase SMP calibration value --- include/asm-x86/calibration.h | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/include/asm-x86/calibration.h b/include/asm-x86/calibration.h index bef4ad3..fa3b3b8 100644 --- a/include/asm-x86/calibration.h +++ b/include/asm-x86/calibration.h @@ -33,14 +33,17 @@ static inline unsigned long xnarch_get_sched_latency (void) #if CONFIG_XENO_OPT_TIMING_SCHEDLAT != 0 sched_latency = CONFIG_XENO_OPT_TIMING_SCHEDLAT; #else -#ifdef CONFIG_X86_LOCAL_APIC +#ifdef CONFIG_SMP + sched_latency = 3350; +#elif defined(CONFIG_X86_LOCAL_APIC) sched_latency = 1000; #else /* !CONFIG_X86_LOCAL_APIC */ /* - * Use the bogomips formula to identify low-end x86 boards when using - * the 8254 PIT. The following is still grossly experimental and needs - * work (i.e. more specific cases), but the approach is definitely - * saner than previous attempts to guess such value dynamically. + * Use the bogomips formula to identify low-end x86 boards + * when using the 8254 PIT. The following is still grossly + * experimental and needs work (i.e. more specific cases), but + * the approach is definitely saner than previous attempts to + * guess such value dynamically. */ #define __bogomips (current_cpu_data.loops_per_jiffy/(500000/HZ)) sched_latency = (__bogomips < 250 ? 17000 : _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git