LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 03-15-2007, 04:49 PM   #1
bigqueso
LQ Newbie
 
Registered: Jun 2006
Location: Salt Lake City, UT, USA
Distribution: Ubuntu (laptop,home), Suse (work)
Posts: 8

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
About timer.... help rajsun Programming 3 05-24-2005 07:06 AM
First timer Cyberian Linux From Scratch 3 04-19-2005 01:27 PM
First timer, help!!!!! jcniest5 Linux - Newbie 7 02-24-2004 09:32 AM
A timer LOUDSilence Programming 1 12-08-2003 06:49 AM
timer... perdesiz Linux - Software 1 09-18-2003 04:39 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration