Messages in this thread | | | From | Keith Owens <> | Subject | Re: [Linux-IrDA]Re: [IrDA+SMP] Lockup in handle_IRQ_event | Date | Thu, 04 Jan 2001 23:06:35 +1100 |
| |
On Thu, 4 Jan 2001 11:51:59 +0100, Florian Lohoff <flo@rfc822.org> wrote: >and a lot of other places simply use "save_flags(flags); cli(); >restore_flags()". Can someone enlighten me how this is supposed to work >on SMP machines ? AFAIK "cli()" only disables IRQs on the local >CPU so a different CPU could easily stumple half way as this >is definitly non atomic.
cli() is not the cli instruction anymore. On smp cli() maps to __global_cli() which is responsible for disabling interrupts on the other processors. See __global_cli in arch/*/kernel/irq.c.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
| |