Skip to content

Commit

Permalink
drm/i915/gem: use spinlock_t instead of struct spinlock
Browse files Browse the repository at this point in the history
spinlock_t is one case where the typedef is to be preferred over struct
spinlock.

Fixes: 42fb60d ("drm/i915/gem: Don't leak non-persistent requests on changing engines")
Cc: Chris Wilson <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
jnikula committed Feb 19, 2020
1 parent 489645d commit 200452f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/gem/i915_gem_context_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ struct i915_gem_context {
char name[TASK_COMM_LEN + 8];

struct {
struct spinlock lock;
spinlock_t lock;
struct list_head engines;
} stale;
};
Expand Down

0 comments on commit 200452f

Please sign in to comment.