summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Diaz Prado <x0083741@ti.com>2011-05-31 09:25:11 +0100
committerAndy Green <andy.green@linaro.org>2011-05-31 09:25:11 +0100
commit4ca030d3eec0855a8c0cbffe8045760e922f901e (patch)
treea42990685d4334ea50df03ed83cb4ed7d0c9477f
parent509c82102bdbc2d48b8b931c218171da103e0f9c (diff)
SGX: UDD: Changing the early suspend registration level
This patch fixes a problem when a native application is running on the secondary display at the same time the Android UI is being shown in the primary display and the suspend mechanism happens. By registering to EARLY_SUSPEND_LEVEL_STOP_DRAWING level the UDD will receive the suspend signal before the DSS goes to suspend, this prevents UDD to interact with the DSS when it is already suspended. The resume mechanism will work in the inverse way, the DSS will be notified first that it needs to resume, then the UDD will be allowed to push frames again to the DSS. This ensures the UDD receives the suspend/resume signal at the correct time. Signed-off-by: Gustavo Diaz Prado <x0083741@ti.com> Change-Id: Ie634e17f6300c3ff2ea9973c36563c6565483322
-rw-r--r--drivers/gpu/pvr/omaplfb/omaplfb_linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/pvr/omaplfb/omaplfb_linux.c b/drivers/gpu/pvr/omaplfb/omaplfb_linux.c
index 7629c6f3c9c..a4e1a94daf5 100644
--- a/drivers/gpu/pvr/omaplfb/omaplfb_linux.c
+++ b/drivers/gpu/pvr/omaplfb/omaplfb_linux.c
@@ -405,7 +405,7 @@ static struct platform_driver omaplfb_driver = {
static struct early_suspend omaplfb_early_suspend = {
.suspend = OMAPLFBDriverSuspend_Entry,
.resume = OMAPLFBDriverResume_Entry,
- .level = EARLY_SUSPEND_LEVEL_DISABLE_FB,
+ .level = EARLY_SUSPEND_LEVEL_STOP_DRAWING,
};
#else /* defined(SGX_EARLYSUSPEND) && defined(CONFIG_HAS_EARLYSUSPEND) */