diff options
author | Tejun Heo <tj@kernel.org> | 2009-03-02 18:53:26 +0900 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2009-03-05 07:25:02 -0500 |
commit | 84bda12af31f930e4200c5244aa111de2485d7b0 (patch) | |
tree | 08d214bf7a1ce56e8c994e7970513bfb4b215e3d /include/linux/libata.h | |
parent | 5825627c9463581fd9e70f8285685889ae5bb9bb (diff) | |
download | kernel_samsung_espresso10-84bda12af31f930e4200c5244aa111de2485d7b0.zip kernel_samsung_espresso10-84bda12af31f930e4200c5244aa111de2485d7b0.tar.gz kernel_samsung_espresso10-84bda12af31f930e4200c5244aa111de2485d7b0.tar.bz2 |
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.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index fbf064e..dc18b87 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 |