]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00293132-1 pxp/v4l2: change memory alloc policy for PxP output buffer
authorRobby Cai <R63905@freescale.com>
Fri, 20 Dec 2013 10:20:47 +0000 (18:20 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:51 +0000 (10:06 +0200)
commitba88d18cb854ee90e9c9ba2d700de3e814c4bca2
treea87776281fbf49605ba312dfad5da25a61cdb57f
parent7350b4de2c4962aa6403cee8df0c31c9d1c3db2a
ENGR00293132-1 pxp/v4l2: change memory alloc policy for PxP output buffer

In previous implementation, the memory allocation/free for PxP output buffer is
done each time v4l2 output device is opened/closed. This is not necessary and
may cause memory fragmentation issue after running many many times. Now we
re-allocate the memory for it only if the existing memory size is not sufficent
for new case.

Signed-off-by: Robby Cai <R63905@freescale.com>
drivers/media/platform/mxc/output/mxc_pxp_v4l2.c
drivers/media/platform/mxc/output/mxc_pxp_v4l2.h