Peter Hurley d41861ca19 tty: Replace ASYNC_INITIALIZED bit and update atomically
Replace ASYNC_INITIALIZED bit in the tty_port::flags field with
TTY_PORT_INITIALIZED bit in the tty_port::iflags field. Introduce helpers
tty_port_set_initialized() and tty_port_initialized() to abstract
atomic bit ops.

Note: the transforms for test_and_set_bit() and test_and_clear_bit()
are unnecessary as the state transitions are already mutually exclusive;
the tty lock prevents concurrent open/close/hangup.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-04-30 09:26:55 -07:00
..
2013-05-05 00:11:29 -04:00
2013-02-22 23:31:31 -05:00
2013-05-05 00:12:29 -04:00
2016-02-17 09:39:56 +01:00
2013-12-18 16:39:54 -08:00
2011-03-31 11:26:23 -03:00
2013-02-22 23:31:31 -05:00
2016-01-22 18:04:28 -05:00
2011-01-10 08:51:44 -08:00
2015-03-25 20:28:11 -04:00
2013-10-16 12:36:10 -07:00