]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: partially inline dma ops
authorFelix Fietkau <nbd@openwrt.org>
Fri, 27 Sep 2013 12:41:45 +0000 (14:41 +0200)
committerJohn Crispin <blogic@openwrt.org>
Tue, 14 Jan 2014 11:48:30 +0000 (12:48 +0100)
commitdd02ac53059f57016e9b1ff9453e254218ebe812
treee043ba5ded8b246601dc25804abf9311a567066e
parent3f4fba896a3a4e963d25e3819453fc501e98f60d
MIPS: partially inline dma ops

Several DMA ops are no-op on many platforms, and the indirection through
the mips_dma_map_ops function table is causing the compiler to emit
unnecessary code.

Inlining visibly improves network performance in my tests (on a 24Kc
based system), and also slightly reduces code size of a few drivers.

coherentio is changed from EXPORT_SYMBOL_GPL to EXPORT_SYMBOL, because
it is now potentially being accessed by any driver using the DMA mapping
API.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Acked-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/5913/
arch/mips/Kconfig
arch/mips/include/asm/dma-mapping.h
arch/mips/mm/dma-default.c