Re: [PATCH] MIPS: R14000: Add missing CPU_R14000 reference in cpu_needs_post_dma_flush()

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

 



On Tue, Oct 07, 2014 at 09:17:45PM -0400, Joshua Kinard wrote:

> cpu_needs_post_dma_flush() in arch/mips/mm/dma-default.c is missing a check for
> CPU_R14000, where it already has checks for CPU_R10000 and CPU_R12000.  This
> patch adds the missing CPU_R14000 check.

Patch is entirely correct.  Except.

This is only used on systems which don't have DMA cache coherency.  Those
systems are the IP28 and IP22 which featured an R10000 rsp.  R10000 or
R12000 processor which is why the R14000 is intentionally not listed in
this if().  Saves a few bytes and cycles.  And probably deserves a
comment in the code!

  Ralf





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

  Powered by Linux