diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-05-11 14:00:20 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-05-11 14:00:20 +0000 |
commit | b474230d34df50ee4b5f01a6264ffb2d41dc5f9e (patch) | |
tree | de7699fa45bc282592a60d4cc1281304ad7b67a7 /linux/Documentation/video4linux/bttv | |
parent | 7db75cc5ef77d21e53de84182dddeddfb20c5c2f (diff) | |
download | mediapointer-dvb-s2-b474230d34df50ee4b5f01a6264ffb2d41dc5f9e.tar.gz mediapointer-dvb-s2-b474230d34df50ee4b5f01a6264ffb2d41dc5f9e.tar.bz2 |
change kmalloc to vmalloc for sglist allocation in videobuf_dma_map/unmap
From: Cohen David.A <david.cohen@nokia.com>
Change kmalloc()/kfree() to vmalloc()/vfree() for sglist allocation
during videobuf_dma_map() and videobuf_dma_unmap()
High resolution sensors might require too many contiguous pages
to be allocated for sglist by kmalloc() during videobuf_dma_map()
(i.e. 256Kib for 8MP sensor).
In such situations, kmalloc() could face some problem to find the
required free memory. vmalloc() is a safer solution instead, as the
allocated memory does not need to be contiguous.
Signed-off-by: David Cohen <david.cohen@nokia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/Documentation/video4linux/bttv')
0 files changed, 0 insertions, 0 deletions