Re: [PATCH 2/3] drm/i915/selftests: Wrap a timer into a i915_sw_fence

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Chris Wilson (2017-10-11 15:06:06)
> +void timed_fence_init(struct timed_fence *tf, long expires)
> +{
> +       i915_sw_fence_init(&tf->fence, timer_fence_notify);
> +
> +       setup_timer_on_stack(&tf->timer, timed_fence_wake, (unsigned long)tf);
> +       mod_timer(&tf->timer, expires);
> +}
> +
> +void timed_fence_fini(struct timed_fence *tf)
> +{
> +       if (del_timer_sync(&tf->timer))
> +               i915_sw_fence_complete(&tf->fence);

Needs the paired destroy_timer_on_stack(&tf->fence);
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux