System-Clock speeds up
malte.witt at sieb-meyer.de
malte.witt at sieb-meyer.de
Mon Jul 19 11:30:16 CEST 2004
Hi,
I still experience problems with my system clock when running rtai_lxrt -
scheduler. All other schedulers work fine.
I broke my problem down to following basic (and quite simple) example. I
do following steps to load module:
1) insmod /usr/realtime/modules/rtai_lxrt.ko
2) insmod test_mod.ko
Whenever test_mod executes the "start_rt_timer" command, my real time
clock starts running nuts. It almost runs three times as fast as it is
supposed to ...
Thread-timing is also too fast !
When unloading test_mod everything is working fine again.,
my test_mod.c:
#include <linux/module.h>
#include <linux/config.h>
#include <rtai_sched.h>
int sl4_mm_init_module(void)
{
rt_set_oneshot_mode();
start_rt_timer(0);
return 0;
}
void sl4_mm_cleanup_module(void)
{
stop_rt_timer();
}
module_init(sl4_mm_init_module);
module_exit(sl4_mm_cleanup_module);
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Malte Witt");
MODULE_DESCRIPTION("Test Driver");
Anyone out there who can help me? Anyone with similar problems?
Greetings,
Malte Witt
--
SIEB & MEYER AG
Sonder-CNC / Dipl. Ing. (FH) Malte Witt
Auf dem Schmaarkamp 21
21339 Lüneburg
Germany
Tel.: +49-4131-203 1618
Fax.: +49-4131-38562
E-mail: development(at)sieb-meyer.de
www.sieb-meyer.de
More information about the Rtai
mailing list