lkml.org 
[lkml]   [2008]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: cdrom: use kmalloced buffers instead of buffers on stack
From
From: Jeff Garzik <jeff@garzik.org>
Date: Mon, 21 Apr 2008 22:01:26 -0400

> Eh... AFAICS this is only really useful in two of the cases converted.
>
> For all the other cases (<= 32 bytes), it is _far_ less complex, far
> less code to simply communicate the additional alignment requirements to
> the compiler.
>
> What about __attribute__ __aligned__? Was that tried?

On some platforms the stack is virtually mapped instead of
from kmalloc or get_free_pages memory.

DMA on stack buffers is really not feasible.


\
 
 \ /
  Last update: 2008-04-22 04:05    [W:0.146 / U:0.480 seconds]
©2003-2011 Jasper Spaans. Advertise on this site