summaryrefslogtreecommitdiff
path: root/linux-core/drm_lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core/drm_lock.c')
-rw-r--r--linux-core/drm_lock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_lock.c b/linux-core/drm_lock.c
index 5557f30f..b8431698 100644
--- a/linux-core/drm_lock.c
+++ b/linux-core/drm_lock.c
@@ -80,7 +80,7 @@ int drm_lock(struct inode *inode, struct file *filp,
add_wait_queue(&dev->lock.lock_queue, &entry);
for (;;) {
- current->state = TASK_INTERRUPTIBLE;
+ __set_current_state(TASK_INTERRUPTIBLE);
if (!dev->lock.hw_lock) {
/* Device has been unregistered */
ret = -EINTR;
@@ -100,7 +100,7 @@ int drm_lock(struct inode *inode, struct file *filp,
break;
}
}
- current->state = TASK_RUNNING;
+ __set_current_state(TASK_RUNNING);
remove_wait_queue(&dev->lock.lock_queue, &entry);
DRM_DEBUG( "%d %s\n", lock.context, ret ? "interrupted" : "has lock" );