Fix from: Nishanth Aravamudan replace direct assignment with
authorJon Smirl <jonsmirl@yahoo.com>
Sat, 18 Sep 2004 16:44:43 +0000 (16:44 +0000)
committerJon Smirl <jonsmirl@yahoo.com>
Sat, 18 Sep 2004 16:44:43 +0000 (16:44 +0000)
    __set_current_state()

linux-core/drm_os_linux.h
linux/drm_os_linux.h

index 62e009e..c3f8ec0 100644 (file)
@@ -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)
 
index 62e009e..c3f8ec0 100644 (file)
@@ -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)