LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 03: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



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 06:06 AM
First timer Cyberian Linux From Scratch 3 04-19-2005 12:27 PM
First timer, help!!!!! jcniest5 Linux - Newbie 7 02-24-2004 08:32 AM
A timer LOUDSilence Programming 1 12-08-2003 05:49 AM
timer... perdesiz Linux - Software 1 09-18-2003 03:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:13 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration