We need to take the lock protecting all SW and HW state tracking
objects on the recovery reset path, since we are accessing objects
like the SGX command queue, or the per process memory and resource
management contexts.
Signed-off-by: Imre Deak <imre.deak@nokia.com>
IMG_BOOL bPoweredDown;
enum PVRSRV_ERROR eError;
- if (!data->armed)
+ pvr_lock();
+ if (!data->armed) {
+ pvr_unlock();
return;
+ }
psDevInfo->ui32TimeStamp++;
rearm:
queue_delayed_work(data->work_queue, &data->work,
msecs_to_jiffies(data->interval));
+
+ pvr_unlock();
}
struct timer_work_data *