diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2006-01-04 09:41:29 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-01-04 09:41:29 -0500 |
commit | 333c9624b728a9e83b741ea75836aa114ec35272 (patch) | |
tree | 607fa3d2d2aa3d2cc3e4c4ebacdf8e7d7b59c565 /include/asm-arm | |
parent | 109a9378807cb9093a88fbf9707420de97601e14 (diff) |
[ARM] Move ISA DMA bus_to_virt() out of set_dma_addr()
Allow the compiler to optimise the bus_to_virt(virt_to_bus())
transformation in the ARM ISA DMA interface.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm')
-rw-r--r-- | include/asm-arm/dma.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-arm/dma.h b/include/asm-arm/dma.h index ef41df43a584..1c7087f9364c 100644 --- a/include/asm-arm/dma.h +++ b/include/asm-arm/dma.h | |||
@@ -91,7 +91,9 @@ extern void set_dma_sg(dmach_t channel, struct scatterlist *sg, int nr_sg); | |||
91 | * especially since some DMA architectures don't update the | 91 | * especially since some DMA architectures don't update the |
92 | * DMA address immediately, but defer it to the enable_dma(). | 92 | * DMA address immediately, but defer it to the enable_dma(). |
93 | */ | 93 | */ |
94 | extern void set_dma_addr(dmach_t channel, unsigned long physaddr); | 94 | extern void __set_dma_addr(dmach_t channel, void *addr); |
95 | #define set_dma_addr(channel, addr) \ | ||
96 | __set_dma_addr(channel, bus_to_virt(addr)) | ||
95 | 97 | ||
96 | /* Set the DMA byte count for this channel | 98 | /* Set the DMA byte count for this channel |
97 | * | 99 | * |