Re: timerfunction-delay

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

 



On 2/24/06, Andreas Gaupmann <andreas.gaupmann@xxxxxxx> wrote:
> Hi!
>
> On Friday 24 February 2006 12:20, Mulyadi Santosa wrote:
> > > code:89 5a 04 89 13 89 43 04 89 18 5b c3 8d 76 00 81 f9 ff 3f 00
> > > <0> kernel panic : Aiee,kernel interrupt handler!
> > >     IN interrupt handler- not syncing.
> >
> > Looking at this message alone, it is likely that you are sleeping inside
> > interrupt context. Solution: don't use sleeping function...use non
> > sleeping delay function if you really need to delay something here.
> >
> Can you give an example for a non-sleeping delay function?

udelay(), mdelay()? I think he meant busy-wait as opposed to sleep.
Usually in the kernel delay means busy-wait and sleep means invoking
the scheduler.

> Are such functions a solution to "schedule while atomic" errors caused by the
> use of schedule_timeout() in atomic operations?

Probably.

Thanks,
Nish

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