summaryrefslogtreecommitdiff
path: root/drivers/serial/serial_core.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@infradead.org>2005-11-29 00:04:11 +0300
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-11-29 00:04:11 +0300
commitcb3592be272d83011051dc49f4326355c01f1e1f (patch)
tree4eb094ef4e2a2b2f5c18f5ca2c2efe06a81974a0 /drivers/serial/serial_core.c
parentf5417612d787e6b619fd69616bbf95f1b895e900 (diff)
downloadlinux-cb3592be272d83011051dc49f4326355c01f1e1f.tar.xz
[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/serial_core.c')
-rw-r--r--drivers/serial/serial_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c
index 2331296e1e17..c17d680e3f04 100644
--- a/drivers/serial/serial_core.c
+++ b/drivers/serial/serial_core.c
@@ -1779,7 +1779,7 @@ struct baud_rates {
unsigned int cflag;
};
-static struct baud_rates baud_rates[] = {
+static const struct baud_rates baud_rates[] = {
{ 921600, B921600 },
{ 460800, B460800 },
{ 230400, B230400 },