Re: High Resolution Ticks in linux kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- vany s <vany_29_2002@yahoo.com> wrote:
> 
> Hi,
>    m writing a PCI IDE driver module and basically i

IDE?  Oh-boy.  Good luck!


> want my driver to implement all delays/sleeps in terms
> of clockticks usingthe system frequency as input ..
> The problem that im facing is that this frequency is
> defined as HZ on all i386 machines which is equal to 
> 100 ..(100 clockticks per sec)  so how do i send the
> high resolution time values i.e micro and nanosec
> waits in terms of ticks so as to schedule a
> wait/timeout for that many ticks? ( I do not want to
> tune the kernel parameter to change the system
> frequency from 100 to a larger value either)
> 
> Pls let me know your inputs
> 

micro and milli-second delays are already implemented.  nano you'll
have to do yourself.

See the following link, and scroll down to "short delays".
http://www.xml.com/ldd/chapter/book/ch06.html#t3

Harmony,

--Christine



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux