summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2006-04-30 11:13:50 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-04-30 11:13:50 +0100
commit68ac64cd3fd89fdaa091701f6ab98a9065e9b1b5 (patch)
tree349dc1446bb52b87ce11f7ba2bb52d90679d3dd5 /include
parente0a515bc6a2188f02916e976f419a8640312e32a (diff)
downloadkernel-crypto-68ac64cd3fd89fdaa091701f6ab98a9065e9b1b5.tar.gz
kernel-crypto-68ac64cd3fd89fdaa091701f6ab98a9065e9b1b5.tar.xz
kernel-crypto-68ac64cd3fd89fdaa091701f6ab98a9065e9b1b5.zip
[SERIAL] Clean up serial locking when obtaining a reference to a port
The locking for the uart_port is over complicated, and can be simplified if we introduce a flag to indicate that a port is "dead" and will be removed. This also helps the validator because it removes a case of non-nested unlock ordering. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/serial_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index c32e60e79de..bd14858121e 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -254,6 +254,7 @@ struct uart_port {
#define UPF_CONS_FLOW ((__force upf_t) (1 << 23))
#define UPF_SHARE_IRQ ((__force upf_t) (1 << 24))
#define UPF_BOOT_AUTOCONF ((__force upf_t) (1 << 28))
+#define UPF_DEAD ((__force upf_t) (1 << 30))
#define UPF_IOREMAP ((__force upf_t) (1 << 31))
#define UPF_CHANGE_MASK ((__force upf_t) (0x17fff))