Hello, If I have a driver with the following setup, on an SMP system: 1. When IRQ is high, ISR is fired, which schedules a work function, and also sets a completion flag 2. A kthread is being in the background, with an infinite whole loop. which waits for this completion 3. Upon completion, process the work, and again goes back to wait.
My queries are as follows: 1. If I am doing a suspend, on an smp system, can there be a race condition between the driver suspend code and the the kthread code? 2. Does the kernel take care that when the kernel starts to to call suspend, all the kthreads are stopped? Thanks, Arindam -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel