From: Jonathan Corbet Date: Thu, 14 Jul 2011 21:10:44 +0000 (-0300) Subject: [media] videobuf2: Do not unconditionally map S/G buffers into kernel space X-Git-Tag: v3.2-rc1~112^2~278 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=297875b6a1f3910c883e4b00bb9bc3e6c3aa6ab7;p=pandora-kernel.git [media] videobuf2: Do not unconditionally map S/G buffers into kernel space The one in-tree videobuf2-dma-sg driver (mmp-camera) has no need for a kernel-space mapping of the buffers; one suspects that most other drivers would not either. The videobuf2-dma-sg module does the right thing if buf->vaddr == NULL - it maps the buffer on demand if somebody needs it. So let's not map the buffer at allocation time; that will save a little CPU time and a lot of address space in the vmalloc range. Signed-off-by: Jonathan Corbet Acked-by: Marek Szyprowski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed