Re: tty sources

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

  • Next message: Carsten Paeth: "[PATCH] ppp_synctty.c in 2.3.99-pre8 and ppp-2.4.0b2"

    > 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 : Wed May 17 2000 - 11:31:27 EDT