summaryrefslogtreecommitdiff
path: root/drivers/serial/8250.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@infradead.org>2005-11-28 21:04:11 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-11-28 21:04:11 +0000
commitcb3592be272d83011051dc49f4326355c01f1e1f (patch)
tree4eb094ef4e2a2b2f5c18f5ca2c2efe06a81974a0 /drivers/serial/8250.c
parentf5417612d787e6b619fd69616bbf95f1b895e900 (diff)
[SERIAL] mark several serial tables const
This patch marks a few serial data structures const, moving them to .rodata where they won't false-share cachelines with things that get written to. Signed-off-by: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/serial/8250.c')
-rw-r--r--drivers/serial/8250.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
index e08510d09ff..d2bcd1f87cd 100644
--- a/drivers/serial/8250.c
+++ b/drivers/serial/8250.c
@@ -102,7 +102,7 @@ static unsigned int share_irqs = SERIAL8250_SHARE_IRQS;
#define SERIAL_PORT_DFNS
#endif
-static struct old_serial_port old_serial_port[] = {
+static const struct old_serial_port old_serial_port[] = {
SERIAL_PORT_DFNS /* defined in asm/serial.h */
};