Re: tty sources

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Wed May 17 2000 - 10:26:52 EST


> I am currently looking at the 2.2.15 kernel tty code and saw that
> "save_flags cli - restore_flags" pair are used instead of spinlocks to
> enforce critical sections. Would'nt this break on SMP systems? I hope I
> am not overlooking something here.

On any SMP box the cli() isnt a local but a global cli, and there is 'magic'
going on to give uniproc compatible behaviour - it is _much_ less efficient

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:13 EST