aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-10-25 09:13:36 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2017-10-25 09:16:16 -0400
commit02a1ca45cf33d23c7540b572aed5bf624ba968fe (patch)
tree434734b5ef5cecac5acf428f01b162a6e4673dcd
parent6d0dbd309687113009a276886628c7c74c848d3c (diff)
Revert "drm/i915/selftests: Convert timers to use timer_setup()"
This reverts commit 6d0dbd309687113009a276886628c7c74c848d3c. timer_setup_on_stack() does not yet exist: In file included from drivers/gpu/drm/i915/i915_sw_fence.c:517:0: drivers/gpu/drm/i915/selftests/lib_sw_fence.c: In function ‘timed_fence_init’: drivers/gpu/drm/i915/selftests/lib_sw_fence.c:63:2: error: implicit declaration of function ‘timer_setup_on_stack’; did you mean ‘hrtimer_init_on_stack’? [-Werror=implicit-function-declaration] timer_setup_on_stack(&tf->timer, timed_fence_wake, 0); Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20171025131336.2584-1-chris@chris-wilson.co.uk Acked-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
-rw-r--r--drivers/gpu/drm/i915/selftests/lib_sw_fence.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/selftests/lib_sw_fence.c b/drivers/gpu/drm/i915/selftests/lib_sw_fence.c
index b26f07b55d86..3790fdf44a1a 100644
--- a/drivers/gpu/drm/i915/selftests/lib_sw_fence.c
+++ b/drivers/gpu/drm/i915/selftests/lib_sw_fence.c
@@ -49,9 +49,9 @@ void onstack_fence_fini(struct i915_sw_fence *fence)
49 i915_sw_fence_fini(fence); 49 i915_sw_fence_fini(fence);
50} 50}
51 51
52static void timed_fence_wake(struct timer_list *t) 52static void timed_fence_wake(unsigned long data)
53{ 53{
54 struct timed_fence *tf = from_timer(tf, t, timer); 54 struct timed_fence *tf = (struct timed_fence *)data;
55 55
56 i915_sw_fence_commit(&tf->fence); 56 i915_sw_fence_commit(&tf->fence);
57} 57}
@@ -60,7 +60,7 @@ void timed_fence_init(struct timed_fence *tf, unsigned long expires)
60{ 60{
61 onstack_fence_init(&tf->fence); 61 onstack_fence_init(&tf->fence);
62 62
63 timer_setup_on_stack(&tf->timer, timed_fence_wake, 0); 63 setup_timer_on_stack(&tf->timer, timed_fence_wake, (unsigned long)tf);
64 64
65 if (time_after(expires, jiffies)) 65 if (time_after(expires, jiffies))
66 mod_timer(&tf->timer, expires); 66 mod_timer(&tf->timer, expires);