* Re: tasklet question... [not found] <9319DDF797C4D211AC4700A0C96B7C9404AC2171@orsmsx42.jf.intel .com> @ 2001-08-22 22:33 ` Maksim Krasnyanskiy 2001-08-23 17:28 ` george anzinger 2001-08-23 18:07 ` Maksim Krasnyanskiy 0 siblings, 2 replies; 4+ messages in thread From: Maksim Krasnyanskiy @ 2001-08-22 22:33 UTC (permalink / raw) To: Raj, Ashok, Linux-Kernel (E-mail) >processing in the tasklet would like to reschedule tasklet again. will the following work > >tasklet_function() >{ > more_processing = DeferredProcessing() > if (more_processing) > tasklet_schedule() // this will schedule the same tasklet. >} > >is the above legal. It's fine and it will work. Max Maksim Krasnyanskiy Senior Kernel Engineer Qualcomm Incorporated maxk@qualcomm.com http://bluez.sf.net http://vtun.sf.net ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: tasklet question... 2001-08-22 22:33 ` tasklet question Maksim Krasnyanskiy @ 2001-08-23 17:28 ` george anzinger 2001-08-23 18:07 ` Maksim Krasnyanskiy 1 sibling, 0 replies; 4+ messages in thread From: george anzinger @ 2001-08-23 17:28 UTC (permalink / raw) To: Maksim Krasnyanskiy; +Cc: Raj, Ashok, Linux-Kernel (E-mail) Maksim Krasnyanskiy wrote: > > >processing in the tasklet would like to reschedule tasklet again. will the following work > > > >tasklet_function() > >{ > > more_processing = DeferredProcessing() > > if (more_processing) > > tasklet_schedule() // this will schedule the same tasklet. > >} > > > >is the above legal. > It's fine and it will work. > Does the tasklet get run again on the same interrupt (assuming that tasklets are run at the end of irq processing) or the next one? If the same, it would seem to be better to just do it. George ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: tasklet question... 2001-08-22 22:33 ` tasklet question Maksim Krasnyanskiy 2001-08-23 17:28 ` george anzinger @ 2001-08-23 18:07 ` Maksim Krasnyanskiy 1 sibling, 0 replies; 4+ messages in thread From: Maksim Krasnyanskiy @ 2001-08-23 18:07 UTC (permalink / raw) To: george anzinger; +Cc: Raj, Ashok, Linux-Kernel (E-mail) >Does the tasklet get run again on the same interrupt (assuming that >tasklets are run at the end of irq processing) or the next one ? It will be run as soon as possible e.g. won't wait for the next interrupt. >If the same, it would seem to be better to just do it. Nop. You should be nice to other tasklets/softirqs. Max Maksim Krasnyanskiy Senior Kernel Engineer Qualcomm Incorporated maxk@qualcomm.com http://bluez.sf.net http://vtun.sf.net ^ permalink raw reply [flat|nested] 4+ messages in thread
* tasklet question...
@ 2001-08-22 22:24 Raj, Ashok
0 siblings, 0 replies; 4+ messages in thread
From: Raj, Ashok @ 2001-08-22 22:24 UTC (permalink / raw)
To: Linux-Kernel (E-mail)
Hello
If iam using tasklets for deferred processing, and after some threashold
processing in the tasklet
would like to reschedule tasklet again. will the following work
tasklet_function()
{
more_processing = DeferredProcessing()
if (more_processing)
tasklet_schedule() // this will schedule the same tasklet.
}
is the above legal.
ashokr
^ permalink raw reply [flat|nested] 4+ messages in threadend of thread, other threads:[~2001-08-23 18:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <9319DDF797C4D211AC4700A0C96B7C9404AC2171@orsmsx42.jf.intel .com>
2001-08-22 22:33 ` tasklet question Maksim Krasnyanskiy
2001-08-23 17:28 ` george anzinger
2001-08-23 18:07 ` Maksim Krasnyanskiy
2001-08-22 22:24 Raj, Ashok
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.