kernel-ark/arch/mips/mm
Jayachandran C 55c25c2f14 MIPS: mm: Move some checks out of 'for' loop in DMA operations
The check cpu_needs_post_dma_flush() in mips_dma_sync_sg_for_cpu() and
the check !plat_device_is_coherent() in mips_dma_sync_sg_for_device()
can be moved outside the for loop.

As a side effect, this also avoids a GCC bug that caused kernel compile
to fail with the error:

arch/mips/mm/dma-default.c: In function 'mips_dma_sync_sg_for_cpu':
arch/mips/mm/dma-default.c:316:1: internal compiler error: in add_insn_before, at emit-rtl.c:3852

This gcc failure is seen in Code Sourcery toolchains [e.g. gcc version
4.7.2 (Sourcery CodeBench Lite 2012.09-99)] after commit "MIPS: Optimize
current_cpu_type() for better code."

Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5907/
Reviewed-by: Markos Chandras <markos.chandras@imgtec.com>
Tested-by: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2013-09-25 17:05:44 +02:00
..
c-octeon.c MIPS: Optimize current_cpu_type() for better code. 2013-09-17 18:50:53 +02:00
c-r3k.c
c-r4k.c MIPS: 74K/1074K: Correct erratum workaround. 2013-09-18 20:25:23 +02:00
c-tx39.c
cache.c
cerr-sb1.c
cex-gen.S
cex-oct.S
cex-sb1.S
dma-default.c MIPS: mm: Move some checks out of 'for' loop in DMA operations 2013-09-25 17:05:44 +02:00
extable.c
fault.c arch: mm: pass userspace fault flag to generic fault handler 2013-09-12 15:38:01 -07:00
gup.c
highmem.c
hugetlbpage.c mm: migrate: check movability of hugepage in unmap_and_move_huge_page() 2013-09-11 15:57:49 -07:00
init.c MIPS: Export copy_from_user_page() (needed by lustre) 2013-09-05 19:59:34 +02:00
ioremap.c
Makefile
mmap.c
page-funcs.S
page.c MIPS: Optimize current_cpu_type() for better code. 2013-09-17 18:50:53 +02:00
pgtable-32.c
pgtable-64.c
sc-ip22.c
sc-mips.c MIPS: Optimize current_cpu_type() for better code. 2013-09-17 18:50:53 +02:00
sc-r5k.c
sc-rm7k.c
tlb-funcs.S
tlb-r3k.c
tlb-r4k.c MIPS: Optimize current_cpu_type() for better code. 2013-09-17 18:50:53 +02:00
tlb-r8k.c
tlbex-fault.S
tlbex.c MIPS: Optimize current_cpu_type() for better code. 2013-09-17 18:50:53 +02:00
uasm-micromips.c
uasm-mips.c
uasm.c