calibration.h

00001 /*
00002  * Copyright &copy; 2004 Philippe Gerum <rpm@xenomai.org>.
00003  * Copyright &copy; 2004 The HYADES project <http://www.hyades-itea.org>
00004  *
00005  * RTAI/fusion is free software; you can redistribute it and/or modify it
00006  * under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * RTAI/fusion is distributed in the hope that it will be useful, but
00011  * WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with RTAI/fusion; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00018  * 02111-1307, USA.
00019  */
00020 
00021 #ifndef _RTAI_ASM_IA64_CALIBRATION_H
00022 #define _RTAI_ASM_IA64_CALIBRATION_H
00023 
00024 #include <rtai_config.h>
00025 
00026 static inline unsigned long xnarch_get_sched_latency (void)
00027 
00028 {
00029 #if CONFIG_RTAI_HW_SCHED_LATENCY != 0
00030 #define __sched_latency CONFIG_RTAI_HW_SCHED_LATENCY
00031 #else /* CONFIG_RTAI_HW_SCHED_LATENCY unspecified */
00032 #ifdef CONFIG_IA64_HP_SIM
00033 #define __sched_latency 1281000
00034 #else /* !CONFIG_IA64_HP_SIM */
00035 #define __sched_latency 6000
00036 #endif /* CONFIG_IA64_HP_SIM */
00037 #endif /* CONFIG_RTAI_HW_SCHED_LATENCY */
00038 
00039     return __sched_latency;
00040 }
00041 
00042 #undef __sched_latency
00043 
00044 #endif /* !_RTAI_ASM_IA64_CALIBRATION_H */

Generated on Sat Sep 3 12:32:47 2005 for RTAI Fusion API by  doxygen 1.4.2