From mboxrd@z Thu Jan 1 00:00:00 1970 From: domen-CvScVCPLwOZg9hUCZPvPmw@public.gmane.org Subject: [patch 1/1] drivers/acpi/osl.c : replace direct assignment with set_current_state() Date: Thu, 07 Jul 2005 23:29:36 +0200 Message-ID: <20050707212936.351448000@homer> Return-path: Content-Disposition: inline; filename=set_current_state-drivers_acpi_osl Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Christophe Lucas , domen-CvScVCPLwOZg9hUCZPvPmw@public.gmane.org List-Id: linux-acpi@vger.kernel.org From: Christophe Lucas Use set_current_state() instead of direct assignment of current->state. Signed-off-by: Christophe Lucas Signed-off-by: Domen Puncer --- osl.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: quilt/drivers/acpi/osl.c =================================================================== --- quilt.orig/drivers/acpi/osl.c +++ 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