Re: Wait for two clock ticks

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

 



Yes - Actually I need to wait for a device to finish something after
which I(device) error out. Ideally, I would like a simple
function using the standard apis that works on most kernels. I cannot
use jiffies as I mentioned earlier. Still working on it.

-Asim

On Fri, Mar 6, 2009 at 8:28 AM, Henrik Austad <henrik@xxxxxxxxx> wrote:
> On Wednesday 04 March 2009 18:50:49 Asim wrote:
>> Hi,
> - Show quoted text -
> 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