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).