[ARM] Don't call consistent_sync() for DMA coherent memory
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Tue, 6 Feb 2007 17:29:53 +0000 (17:29 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 8 Feb 2007 14:49:37 +0000 (14:49 +0000)
Memory allocated by the coherent memory allocators will be marked
uncacheable, which means it's pointless calling consistent_sync()
to perform cache maintainence on this memory; it's just a waste of
CPU cycles.

Moreover, with the (subsequent) merge of outer cache support, it
actually breaks things to call consistent_sync() on anything but
direct-mapped memory.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

No differences found