Re: Sleeping for <1 jiffie in kernel module

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

 



On Thu, 3 Feb 2005 20:29:36 +0100, Sven Schwyn <echo37@xxxxxxxxxxx> wrote:

> I can't use nanosleep() in kernel modules and the resolution of
> schedule_timeout() is way too large. What else can I use instead of
> nanosleep()?

How bad is it if you miss a cycle? You can only use scheduling
functions if you're in process context at the time that you call them
(with the stock kernel) and if deadlines matter then you don't want to
risk sitting on the wrong runqueue for too long.

Jon.

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