All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] RTDM timing problems
@ 2006-01-30 18:11 Rodrigo Rosenfeld Rosas
  2006-01-30 18:42 ` Jan Kiszka
  0 siblings, 1 reply; 8+ messages in thread
From: Rodrigo Rosenfeld Rosas @ 2006-01-30 18:11 UTC (permalink / raw)
  To: xenomai

Hi,

I just can't understand what is happening.

The above code on my driver initialization gives the following results.

        start_time = rtdm_clock_read();
	rtdm_task_busy_sleep(43000);
	temp_time = rtdm_clock_read();
	   rtdm_printk(KERN_INFO "%u - %u = %u\n",(unsigned int) temp_time, (unsigned 
int) start_time, (unsigned int) (temp_time-start_time));

	   rtdm_printk(KERN_INFO "%u - %u = %u\n",(unsigned int) 
(temp_time&0xffffffff), (unsigned int) start_time&0xffffffff, (unsigned int) 
((temp_time-start_time)&0xffffffff));


As I expected, both printk gave the same (wrong?) result:
3175950208 - 2800623168 = 375327040

I was waiting something near to 43000, shouldn't I?

Please, can someone explain me what is going on...

Thanks,

Rodrigo.

	

	
		
_______________________________________________________ 
Yahoo! doce lar. Faça do Yahoo! sua homepage. 
http://br.yahoo.com/homepageset.html 




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-02-02 16:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-30 18:11 [Xenomai-help] RTDM timing problems Rodrigo Rosenfeld Rosas
2006-01-30 18:42 ` Jan Kiszka
2006-01-30 23:17   ` Jeroen Van den Keybus
2006-01-31  9:46     ` Jan Kiszka
2006-02-02 12:46   ` Rodrigo Rosenfeld Rosas
2006-02-02 12:48     ` Jan Kiszka
2006-02-02 15:23       ` Rodrigo Rosenfeld Rosas
2006-02-02 16:26         ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.