drivers/acpi/osl.c : replace direct assignment with set_current_state()
PATCH 1/1 drivers/acpi/osl.c : replace direct assignment with set_current_state()
From: Christophe Lucas <[email protected]>
Use set_current_state() instead of direct assignment of current->state.
Signed-off-by Christophe Lucas <[email protected]>
Signed-off-by Domen Puncer <[email protected]>
--- osl.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/osl.c +1 -1
@@ -941,7 +941,7 @@ acpi_os_wait_semaphore( ret =down_trylock (sem);for (i = timeout; (i >0 && ret <0 ); i -= quantum_ms) { - current->state =TASK_INTERRUPTIBLE ; +set_current_state (TASK_INTERRUPTIBLE );schedule_timeout (1 ); ret =down_trylock (sem); }
--
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar