From fccbbbeccc09620e9a866eb52b1d7ef85675394e Mon Sep 17 00:00:00 2001
From: Li Zeng
Date: Mon, 28 May 2012 17:38:41 +0800
Subject: [PATCH] ved: schedule a work_queue in release method to try to power
down ved
BZ: 37164
This is to make sure that ved is power off when not in use. Remove IS_MRST() check because mrst is no longer supported.
Change-Id: I4ca1718d7454c13147a77c6d008de9d3f594647f
Signed-off-by: Li Zeng
Reviewed-on: http://android.intel.com:8080/50360
Reviewed-by: Ding, Haitao
Tested-by: Ding, Haitao
Reviewed-by: Jiang, Fei
Reviewed-by: Continente, Christophe
Reviewed-by: buildbot
Tested-by: buildbot
---
drivers/staging/mrst/imgv/psb_ttm_glue.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/mrst/imgv/psb_ttm_glue.c b/drivers/staging/mrst/imgv/psb_ttm_glue.c
index 84d5531..4ecd47c 100644
--- a/drivers/staging/mrst/imgv/psb_ttm_glue.c
+++ b/drivers/staging/mrst/imgv/psb_ttm_glue.c
@@ -146,8 +146,7 @@ int psb_release(struct inode *inode, struct file *filp)
MRST_MSG_WRITE32(0x1, 0x4, (ui32_reg_value | (0x1 << 7)));
}
- if (IS_MRST(dev_priv->dev))
- schedule_delayed_work(&dev_priv->scheduler.msvdx_suspend_wq, 10);
+ schedule_delayed_work(&dev_priv->scheduler.msvdx_suspend_wq, msecs_to_jiffies(10));
#endif
ret = drm_release(inode, filp);
--
2.7.4