diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-02-10 06:19:37 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-02-10 06:19:37 +0000 |
commit | 00efb97d6be352e5d712e51df8fbb8f2d7bfe7f6 (patch) | |
tree | 778d737fe2eb6f8a3010348ef65de3538466f62a /sys/dev/pci/drm/i915/i915_gem.c | |
parent | 1862e4a781f54cbb4e9ad8c1ae3542f4dee0ccd5 (diff) |
switch most rwlock calls back to their linux equivalents
Diffstat (limited to 'sys/dev/pci/drm/i915/i915_gem.c')
-rw-r--r-- | sys/dev/pci/drm/i915/i915_gem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/i915/i915_gem.c b/sys/dev/pci/drm/i915/i915_gem.c index 73f0a124abf..5b7971b6545 100644 --- a/sys/dev/pci/drm/i915/i915_gem.c +++ b/sys/dev/pci/drm/i915/i915_gem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i915_gem.c,v 1.80 2015/02/10 01:39:32 jsg Exp $ */ +/* $OpenBSD: i915_gem.c,v 1.81 2015/02/10 06:19:36 jsg Exp $ */ /* * Copyright (c) 2008-2009 Owain G. Ainsworth <oga@openbsd.org> * @@ -159,7 +159,7 @@ int i915_mutex_lock_interruptible(struct drm_device *dev) if (ret) return ret; - ret = -rw_enter(&dev->struct_mutex, RW_WRITE | RW_INTR); + ret = mutex_lock_interruptible(&dev->struct_mutex); if (ret) return ret; |