diff options
author | Arjan van de Ven <arjan@infradead.org> | 2005-11-28 04:06:23 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-12-01 02:29:35 -0500 |
commit | 98ac62defe529d04a192688f40d801a2d8fbcf98 (patch) | |
tree | f37be3b98a245f83d6c2ed37938377ed0b1bcae6 /drivers/scsi/libata-core.c | |
parent | 6946d28a9f47f50fe3dd916e8b4229de9769108e (diff) |
[PATCH] mark several libata datastructures const
Hi,
the patch below marks several libata (and libata-driver) structures
const so that they end up in the .rodata segment and don't false-share
cachelines with things that get dirtied often.
Signed-off-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/scsi/libata-core.c')
-rw-r--r-- | drivers/scsi/libata-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 9f27e8d0e774..11ed6fa27096 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -605,7 +605,7 @@ void ata_rwcmd_protocol(struct ata_queued_cmd *qc) | |||
605 | tf->command = ata_rw_cmds[index + lba48 + write]; | 605 | tf->command = ata_rw_cmds[index + lba48 + write]; |
606 | } | 606 | } |
607 | 607 | ||
608 | static const char * xfer_mode_str[] = { | 608 | static const char * const xfer_mode_str[] = { |
609 | "UDMA/16", | 609 | "UDMA/16", |
610 | "UDMA/25", | 610 | "UDMA/25", |
611 | "UDMA/33", | 611 | "UDMA/33", |
@@ -2083,7 +2083,7 @@ static void ata_pr_blacklisted(const struct ata_port *ap, | |||
2083 | ap->id, dev->devno); | 2083 | ap->id, dev->devno); |
2084 | } | 2084 | } |
2085 | 2085 | ||
2086 | static const char * ata_dma_blacklist [] = { | 2086 | static const char * const ata_dma_blacklist [] = { |
2087 | "WDC AC11000H", | 2087 | "WDC AC11000H", |
2088 | "WDC AC22100H", | 2088 | "WDC AC22100H", |
2089 | "WDC AC32500H", | 2089 | "WDC AC32500H", |