Messages in this thread | | | Date | Mon, 21 Apr 2008 19:03:31 -0700 (PDT) | Subject | Re: cdrom: use kmalloced buffers instead of buffers on stack | From | David Miller <> |
| |
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.
| |