From c15b1d15ffbf41ed60cd807d13f031c8f270f887 Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Sat, 18 Sep 2004 16:44:43 +0000 Subject: Fix from: Nishanth Aravamudan replace direct assignment with __set_current_state() --- linux/drm_os_linux.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux/drm_os_linux.h') diff --git a/linux/drm_os_linux.h b/linux/drm_os_linux.h index 62e009e2..c3f8ec0e 100644 --- a/linux/drm_os_linux.h +++ b/linux/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) -- cgit v1.2.3