Skip to contentSkip to conversation

drivers/acpi/osl.c : replace direct assignment with set_current_state()

PATCH New [email protected] 1 participant 1 message May 13, 2005 ACPI

lore
Share & tools
lore
#0 lore raw

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.

---
 osl.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/osl.c +1 -1
Index: quilt/drivers/acpi/osl.c
===================================================================
@@ -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