2010/3/29 अनुज <anuj01@xxxxxxxxx>: > Hi list > > Please anybody elaborate on this point : When we take any lock in > kernel e.g. spin_lock() then preemption is automatically disabled by > kernel. Then why to use spin_lock_{irq, irqsave}()? I am assuming even > interrupt handler cant preempt the kernel when preemption is disabled > by kernel. > > > Thanks, > > Regards > > -- > Anuj Aggarwal > > .''`. > : :Ⓐ : # apt-get install hakuna-matata > `. `'` > `- > Anuj, spin_lock and all its variations disable "preemption" not "interrupt". Kernel do change its context to interrupt handler when it receives external event like timer. Please read archives about the similar topic discussed here before. -VInit -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ