Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.