[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>
This commit is contained in:
committed by
Russell King
parent
f5417612d7
commit
cb3592be27
@@ -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 },
|
||||
|
Reference in New Issue
Block a user