public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Delay in a tasklet.
@ 2005-03-29 15:20 Bouchard, Sebastien
  2005-03-30 10:15 ` Davide Rossetti
  2005-03-31 18:48 ` Mark Gross
  0 siblings, 2 replies; 6+ messages in thread
From: Bouchard, Sebastien @ 2005-03-29 15:20 UTC (permalink / raw)
  To: 'linux-kernel@vger.kernel.org'

Hi,

I'm in the process of writing a linux driver and I have a question in
regards to tasklet :

Is it ok to have large delay "udelay(1000);" in the tasklet?

If not, what should I do? 

Please send the answer to me personally (I'm not subscribe to the mailling
list) :

Sebastien Bouchard 
Software designer
Kontron Canada Inc. 
<mailto:sebastien.bouchard@ca.kontron.com> 
<http://www.kontron.com/> 
Corp. Tel.: (450) 430-5400 
Direct Tel.: (450) 437-4661 x2426 



^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Delay in a tasklet.
@ 2005-03-30 12:01 tvrtko.ursulin
  0 siblings, 0 replies; 6+ messages in thread
From: tvrtko.ursulin @ 2005-03-30 12:01 UTC (permalink / raw)
  To: Jan Engelhardt
  Cc: Davide Rossetti, 'linux-kernel@vger.kernel.org',
	Bouchard, Sebastien

On 30/03/2005 12:50:01 linux-kernel-owner wrote:

>> I'd be interested in the answer as well. I have a driver which does
>> udelay(100), so no 1000 but anyway, and of course I end up having the 
X86_64
>> kernel happily crying. I'm moving to a little state-machine to allow 
for a
>> multi-pass approach instead of busy-polling..
>> regards
>
>schedule_timeout() would come to mind.

Not from a tasklet. ;)

I had a custom primitive some time ago which I imaginatively named 
taskletex. When scheduling a tasklet one could then specifiy a delay in 
jiffies. If zero, a normal tasklet would be scheduled and if >0 a timer 
would be added. Nothing fancy or special really, but it was useful for the 
work I was doing at that time.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-03-31 18:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-29 15:20 Delay in a tasklet Bouchard, Sebastien
2005-03-30 10:15 ` Davide Rossetti
2005-03-30 11:50   ` Jan Engelhardt
2005-03-30 13:57   ` linux-os
2005-03-31 18:48 ` Mark Gross
  -- strict thread matches above, loose matches on Subject: below --
2005-03-30 12:01 tvrtko.ursulin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox