Re: Delay in a tasklet.

From: Mark Gross (mgross_at_linux.intel.com)
Date: 03/31/05

  • Next message: Lee Revell: "Re: off topic: GPL and binary modules"
    To: "Bouchard, Sebastien" <Sebastien.Bouchard@ca.kontron.com>, "'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
    Date:	Thu, 31 Mar 2005 10:48:25 -0800
    
    

    On Tuesday 29 March 2005 07:20, Bouchard, Sebastien wrote:
    > 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?
    >

    If the hardware can tolerate longer a longer or variable delays, then perhaps
    putting the work that has the large delay on a one shot timer would work?

    If that doesn't cut it, then I wonder if you could structure your taskelt
    processing around a kernel thread.

    Is this for 2.6 or 2.4 based kernels?

    --mgross

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Lee Revell: "Re: off topic: GPL and binary modules"

    Relevant Pages

    • Re: tasklets vs. workqueues
      ... On Wed, 25 Feb 2004, George Anzinger wrote: ... Except that setscheduler is static in kernel/sched.c so one ... to create a SCHED_FIFO kernel thread from a module. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • (2.4 question) open_namei hangs
      ... I am trying to read the contents of a file from a kernel thread, ... int my_callback(void * buf, const char * name, int namlen, loff_t ... // Main daemon thread ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: x86-64 bad pmds in 2.6.11.6 II
      ... > I must confess, with all due respect to Andi, that I don't understand his ... the case of an kernel thread with lazy mm doing some memory access ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH 1/2] kthread_create
      ... we're always a purebred kernel thread descended ... Hmm, if it's an RT task, it'll screw up, yes, because yield() won't ... the parent when a task dies, OR taking over the parenthood of the ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)