summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@yahoo.com>2004-09-18 16:44:43 +0000
committerJon Smirl <jonsmirl@yahoo.com>2004-09-18 16:44:43 +0000
commitc15b1d15ffbf41ed60cd807d13f031c8f270f887 (patch)
tree96a475bafe7af06dd14315a7a29186a351e8ec11 /linux-core
parent993a75a5d148cb0a93bbed677b550bfb4d57fe4a (diff)
Fix from: Nishanth Aravamudan replace direct assignment with
__set_current_state()
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_os_linux.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_os_linux.h b/linux-core/drm_os_linux.h
index 62e009e2..c3f8ec0e 100644
--- a/linux-core/drm_os_linux.h
+++ b/linux-core/drm_os_linux.h
@@ -154,7 +154,7 @@ do { \
add_wait_queue(&(queue), &entry); \
\
for (;;) { \
- current->state = TASK_INTERRUPTIBLE; \
+ __set_current_state(TASK_INTERRUPTIBLE); \
if (condition) \
break; \
if (time_after_eq(jiffies, end)) { \
@@ -167,7 +167,7 @@ do { \
break; \
} \
} \
- current->state = TASK_RUNNING; \
+ __set_current_state(TASK_RUNNING); \
remove_wait_queue(&(queue), &entry); \
} while (0)