On Tue, 2004-07-06 at 05:56 +0000, manish regmi wrote: > So, > What should be the value of preempt_count for preemption. > Is it PREEMPT_ACTIVE or other value. > IS there any documentation on kernel preemption for us to read. I have read > your interview with Kernel Trap and your article on 2.6 internals. That was > really fruitful for me. IS Anythig more available? The code speaks well for itself. If you look at preempt_schedule () or the ret_from_intr path in entry.S, the preemption count must be zero for a preemption count to occur. It is then set to PREEMPT_ACTIVE and schedule () is called. Robert Love -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/