char/drm_os_linux: replace
Subsystems (2)
PATCH 3/33 char/drm_os_linux: replace
Any comments would be appreciated.
Description: Use set_current_state() instead of direct assignment of current->state.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/char/drm/drm_os_linux.h +1 -1
@@ -134,7 +134,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)) { \
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
PATCH 3/33 char/drm_os_linux: replace
Re-submission of patch incorporating Alan Cox's suggestion of using __set_current_state() and changing the other direct assignment in the macro.
Thanks,
Nish
Description: Use set_current_state() instead of direct assignment of current->state.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/char/drm/drm_os_linux.h +2 -2
@@ -134,7 +134,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)) { \
@@ -147,7 +147,7 @@ do { \break ; \ } \ } \ - current->state =TASK_RUNNING ; \ +__set_current_state (TASK_RUNNING ); \remove_wait_queue (&(queue), &entry); \ }while (0 )
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors