Re: [PATCH 2/2] MIPS: partially inline dma ops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/12/2013 04:22 AM, Felix Fietkau wrote:
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.

Signed-off-by: Felix Fietkau <nbd@xxxxxxxxxxx>
---
  arch/mips/Kconfig                   |   4 +
  arch/mips/include/asm/dma-mapping.h | 360 +++++++++++++++++++++++++++++++++++-
  arch/mips/mm/dma-default.c          | 161 ++--------------
  3 files changed, 372 insertions(+), 153 deletions(-)


That is not a very pleasing diffstat.


David


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux