http://lxr.linux.no/linux+v2.6.35/include/linux/preempt.h#L21
I am just trying get the linux source. I saw this preempt count and how does linux ensure the preempt count is atomic ? The code just increments the value.
Also I have an another question. why does interrupt handles need to maintain mutual exclusion. Because only one can execute at a time right ?
Also when interrupts are disabled what does OS do ? Ignore interrups or maintain a queue ?