Re: Wait for two clock ticks

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

 



On Wednesday 04 March 2009 18:50:49 Asim wrote:
> Hi,

Hi,

> I would like to wait in a while loop for two clock ticks. I was
> wondering how do I do this. I do not want to use jiffies since
> interrupts may be disabled in this loop. Any help?

Can you suspend whilst waiting? I.e. have you looked at hrtimers? Then you can 
pretty much wait for however long you want. If you need to start very shortly 
after the timer expires, regardless of the load etc, you should probably have 
a look at the rt-patch series.

Btw, why do you need to wait for 2 whole ticks? And, have you condisdered the 
consequences of this code in a tickless kernel?

> Regards,
> Asim

enrik

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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