Re: nanosleep

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

 



On 7/7/07, pradeep singh <2500.pradeep@xxxxxxxxx> wrote:
On 7/7/07, Rajat Jain <Rajat.Jain@xxxxxxxxxxxx> wrote:
[snip]
>
> Huh? So something like following is allowed?
Yes AFAICT.
>
> preempt_disable();
> udelay(5);
> preempt_enable();
>
> ?????
What is wrong with this code?

nothing.

This should work fine.
udelay is fine enough i guess.
It should be a prob if it is msleep(n) or usleep(n).

isn't it?

Yes.

yes/no?

Yes.

Did i miss something?

No.

Thanks,
Nish

--
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