Re: [PATCH v3] ad7877: keep dma rx buffers in seperate cache lines
From: Pekka Enberg
Date: Tue May 11 2010 - 16:22:34 EST
On Tue, May 11, 2010 at 11:10 PM, Mike Frysinger <vapier.adi@xxxxxxxxx> wrote:
>> Make your own slab cache with the alignment flag set, as Pekka already
>> mentioned.
>
> and like i said, that doesnt sound like a reasonable solution when
> every single SPI driver (over 100 atm) out there is affected
Why do you need to do it in every driver? Why not create a cache of
size cache_line_size()*2 or something in the SPI stack and add a
helper function spi_alloc_whatever_this_is_about() for the drivers to
use?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/