Hi... On Tue, Jan 6, 2009 at 10:10 PM, Adrian Cornish <adrianc@xxxxxxx> wrote: >> Hm,from the function's comment: >> >> /* >> *This callback runs from the timer interrupt, and checks >> * whether the watchdog thread has hung or not: >> */ >> >> that means,it runs in interrupt context, thus AFAIK it won't >> be preempted. > Thanks Mulyadi. > > If I wanted to trace back through the code that got to softlock_tick(), > ehat would I look for to find out if pre-emtive switching had been > disabled in the kernel source that I have I am really rusty when recalling kernel functions lately, but I think one of the example is preempt_disable. Other is spinlock_irq_save(). Also watch out for certain situation i.e inside interrupt context where preemption won't happen. CMIIW people.. 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