Re: cli/sti in char/vt.c [patch]

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 1 Jun 1998 20:33:55 +0100 (BST)


> Don't think so. Well, it is safe on i386, but on other architectures,
> test_and_set_bit is not guaranteed to be atomic. [And I'm afraid that
> this code is used on non-i386 but similar hw around machines?]

It needs to be and is by definition atomic.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu