]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: dmabounce: move decision for bouncing into __dma_map_page()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 3 Jul 2011 21:39:43 +0000 (22:39 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 3 Jul 2011 22:28:31 +0000 (23:28 +0100)
commit13a69c33b4ddb62c03dfa562b55b954ef62868bc
tree2f6a90b735f26aeaea94ace887f8576bebbb2b30
parentfe9b9453856b6ad9903524887622a0ae318d647e
ARM: dmabounce: move decision for bouncing into __dma_map_page()

Move the decision whether to bounce into __dma_map_page(), before
the check for high pages.  This avoids triggering the high page
check for devices which aren't using dmabounce.  Fix the unmap path
to cope too.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/dmabounce.c