Commits

Liu Ying committed 020ad348c5c
ENGR00227472 MXC V4L2 capture:Improve resource lock 1) We get busy_lock semaphore before we get a dqueue event, so, when user is blocked at DQBUF ioctrl, the user will also be blocked at QBUF ioctrl, then the video performance will drop. This patch changes to get busy_lock semaphore to protect DQBUF ioctrl until we successfully get a dqueue event. 2) Use queue_int_lock and dqueue_int_lock spinlocks to protect working_q/ ready_q/done_q in the end of frame interrupt handler camera_callback(), in case, the handler and VIDIOC_QBUF/VIDIOC_DQBUF ioctrls are called on diff- erent cores at the same time. 3) Protect ready_q with queue_int_lock spinlock in mxc_streamon(), in case, VIDIOC_STREAMON and VIDIOC_QBUF ioctrls are called on different cores at the same time. Signed-off-by: Liu Ying <Ying.Liu@freescale.com> (cherry picked from commit e92c2307ebcf66badc5db8d4449218e3489a9e78)