summaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2009-03-02 18:53:26 +0900
committerJeff Garzik <jgarzik@redhat.com>2009-03-05 07:25:02 -0500
commit84bda12af31f930e4200c5244aa111de2485d7b0 (patch)
tree08d214bf7a1ce56e8c994e7970513bfb4b215e3d /include/linux/libata.h
parent5825627c9463581fd9e70f8285685889ae5bb9bb (diff)
downloadblackbird-op-linux-84bda12af31f930e4200c5244aa111de2485d7b0.tar.gz
blackbird-op-linux-84bda12af31f930e4200c5244aa111de2485d7b0.zip
libata: align ap->sector_buf
ap->sector_buf is used as DMA target and should at least be aligned on cacheline. This caused problems on some embedded machines. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index fbf064e13ad5..dc18b87ed722 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -751,7 +751,8 @@ struct ata_port {
acpi_handle acpi_handle;
struct ata_acpi_gtm __acpi_init_gtm; /* use ata_acpi_init_gtm() */
#endif
- u8 sector_buf[ATA_SECT_SIZE]; /* owned by EH */
+ /* owned by EH */
+ u8 sector_buf[ATA_SECT_SIZE] ____cacheline_aligned;
};
/* The following initializer overrides a method to NULL whether one of
OpenPOWER on IntegriCloud