struct wait_queue_entry wait;
struct drm_crtc *crtc;
- struct i915_request *request;
+ struct dma_fence *fence;
};
static int do_rps_boost(struct wait_queue_entry *_wait,
unsigned mode, int sync, void *key)
{
struct wait_rps_boost *wait = container_of(_wait, typeof(*wait), wait);
- struct i915_request *rq = wait->request;
+ struct i915_request *rq = to_request(wait->fence);
/*
* If we missed the vblank, but the request is already running it
*/
if (!i915_request_started(rq))
intel_rps_boost(rq);
- i915_request_put(rq);
+ dma_fence_put(wait->fence);
drm_crtc_vblank_put(wait->crtc);
return;
}
- wait->request = to_request(dma_fence_get(fence));
+ wait->fence = dma_fence_get(fence);
wait->crtc = crtc;
wait->wait.func = do_rps_boost;