Hi... On Thu, Apr 10, 2008 at 2:32 PM, bhanu nani <bhanu.lnxnew@xxxxxxxxx> wrote: > Hi all, > > I am trying to test kernel preemption in my driver. When I first > compiled the Linux kernel and tested it, I found it to be > non-preemptible. Later I realised that my kernel was build with > premption disabled. I enabled kernel premption in processort section > i.e. CONFIG_PREEMPT and rebuild it. > Even with change in the kernel preemption does not work. I am trying > it on my latest stable kernel. > > Test code: > -------------- > read() > { > if(down_interruptible()) > return error; > mdelay(10000); > up(); > } > > With this code in place, I try to do a 'CTRL+C' when it hangs at that delay. > It does not respond to my 'CTRL + C'. Is that user space or kernel space code? regards, Mulyadi -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ