Skip to contentSkip to conversation

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

PATCH New [email protected] 1 participant 1 message Jul 7, 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 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