ENGR00125616 GPU: make sure device is stopped before close bsp-10.07.11
authorJie Zhou <b30303@freescale.com>
Wed, 28 Jul 2010 04:04:04 +0000 (12:04 +0800)
committerMatt Sealey <neko@excel.(none)>
Tue, 10 Aug 2010 16:52:10 +0000 (11:52 -0500)
commit03bc7b8a7a90562db183f77829e86d29449d4f31
tree6ab236dc173d0000be6e68024059b79ab7eeb9f6
parentd21a3a60845b0e8fb3ab48d75153fa95ec0e8d35
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