On Thu, 4 Jan 2001 11:51:59 +0100, 
Florian Lohoff <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to