gpu: pvr: bail out from SGXOSTimer if it's been canceled
authorImre Deak <imre.deak@nokia.com>
Wed, 31 Mar 2010 14:53:20 +0000 (17:53 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 20 May 2012 18:09:40 +0000 (21:09 +0300)
commitcff2809a0b9ef847eebaa275334615a227a01b31
tree3542046d4abcf0caf094e12d45bd2fded41e7c34
parenta9ac4482b30a6c0605139f2e6527c379f24e7486
gpu: pvr: bail out from SGXOSTimer if it's been canceled

At the moment cancelling the timer is done in a synchronous way, so
we don't need to have the extra check. But a later patch will add
additional locking around the HW interrupt from where the timer can
be cancelled as well. Because of lock dependency issues described
in that patch we have to switch to an asynchronous way of cancelling
this timer and it means we need to have the extra check.

Also reset the flag indicating that the timer is cancelled when
destroying it. Currently we are both cancelling and destroying the
timer, but we really should just require calling the destroy function.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
pvr/sgxinit.c