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'.
Where am I missing the preemption thing in the kernel?
Regards,
Bhanu J
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ