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.018 / U:0.472 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site