]> git.baikalelectronics.ru Git - kernel.git/commit
ieee1394: sbp2: optimize DMA direction of s/g tables
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 4 Feb 2007 19:54:57 +0000 (20:54 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 29 Apr 2007 22:00:27 +0000 (00:00 +0200)
commit55b16d9bedfa9bb834206e45a0f04bd1f1f5f7e6
tree9adb9c7816ef80c39b33d141efefc35803f17717
parentec3a2cb6cb1f7c6c45e2f25e3044c4ae5e36acb3
ieee1394: sbp2: optimize DMA direction of s/g tables

Unlike the name suggests, "cmd->scatter_gather_element" holds only the
s/g table, not the actual s/g elements.  Since the table is only read
but never written by the device, DMA_BIDIRECTIONAL can be replaced by
DMA_TO_DEVICE which may be cheaper on some architectures.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/ieee1394/sbp2.c