From 4bf158ce020af9738f5bf48ab34680f2c396aff3 Mon Sep 17 00:00:00 2001 From: kuogee hsieh Date: Tue, 30 Nov 2010 15:40:46 -0800 Subject: [PATCH] msm_fb: display: Add delay kickoff to MDDI Add delay kickoff mechanism to consolidate multiple kickoffs into one to avoid unnecessary delay at MDDI interface. Also the MDP4_NONBLOCKING was removed due to every MDDI kickoff is blocked until overlay blending completion interrupt is delivered. This patch also remove unnecessary semaphore at the topmost layer (fbmem) ioctl to allow multiple msm_fb ioctl calls. Mutex is provided by individual function to synch between multiple ioctl calls. CRs-fixed: 264934 Change-Id: I3aecdd9cb4d7c79f67b641f90e78a6764095a6b2 Signed-off-by: Kuogee Hsieh Signed-off-by: David Brown --- drivers/video/fbmem.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index c6ce416ab58..d6a664a168b 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c @@ -1183,14 +1183,11 @@ static long do_fb_ioctl(struct fb_info *info, unsigned int cmd, unlock_fb_info(info); break; default: - if (!lock_fb_info(info)) - return -ENODEV; fb = info->fbops; if (fb->fb_ioctl) ret = fb->fb_ioctl(info, cmd, arg); else ret = -ENOTTY; - unlock_fb_info(info); } return ret; }