LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Multimedia timer (SMP friendly timer) (https://www.linuxquestions.org/questions/linux-kernel-70/multimedia-timer-smp-friendly-timer-537822/)

bigqueso 03-15-2007 03:49 PM

Multimedia timer (SMP friendly timer)
 
I'm trying to use the multimedia timers found in /usr/include/linux/mmtimer.h

I've used this same code on an SGI Altix linux machine, and the biggest difference between versions of the headers, is the absence of MMTIMER_FULLNAME. On the Altix the name is /dev/mmtimer, but that device doesn't exist on two of my machines.

Has anyone had any luck using mmtimer? The basic idea on the Altix is to mmap the device and read the current number of ticks in it.

Does anyone else have other methods that are SMP friendly? I tried using gettimeofday(), but that doesn't scale well for SMP machines (the function blocks allowing only a single thread to call it at a time).

Thanks,
James


All times are GMT -5. The time now is 04:56 PM.