ENGR00125616 GPU: make sure device is stopped before close rel_imx_2.6.31_10.07.11
authorJie Zhou <b30303@freescale.com>
Wed, 28 Jul 2010 04:04:04 +0000 (12:04 +0800)
committerJie Zhou <b30303@freescale.com>
Thu, 29 Jul 2010 01:39:45 +0000 (09:39 +0800)
commit0e46b52536b83148c547298cbe9a3b5b25b1d0fe
treeb67664bc2d3e8bea1511be6bd9ac09876af3c04b
parent71a720f2f78effa6000355d03f2c346b8c52a44a
ENGR00125616 GPU: make sure device is stopped before close

When terminating some applications such as OpenGL ES2.0 conf. test,
kgsl_device_stop is not triggered. And run such kind of application
for several times, system hang happens for inconsistency of device
states. So make sure device is stopped in kgsl_device_close, which
is only called by last running caller process.

Signed-off-by: Jie Zhou <b30303@freescale.com>
drivers/mxc/amd-gpu/common/gsl_device.c