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 Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click