public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 1/1] drivers/acpi/osl.c : replace direct assignment with set_current_state()
@ 2005-05-13 22:23 domen-CvScVCPLwOZg9hUCZPvPmw
  0 siblings, 0 replies; 2+ messages in thread
From: domen-CvScVCPLwOZg9hUCZPvPmw @ 2005-05-13 22:23 UTC (permalink / raw)
  To: len.brown-ral2JQCrhuEAvxtiuMwx3w
  Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Christophe Lucas,
	domen-CvScVCPLwOZg9hUCZPvPmw

[-- Attachment #1: set_current_state-drivers_acpi_osl --]
[-- Type: text/plain, Size: 1094 bytes --]

From: Christophe Lucas <clucas-FNWCkmgu6Xgh9ZMKESR00Q@public.gmane.org>



Use set_current_state() instead of direct assignment of
current->state.

Signed-off-by: Christophe Lucas <clucas-FNWCkmgu6Xgh9ZMKESR00Q@public.gmane.org>
Signed-off-by: Domen Puncer <domen-CvScVCPLwOZg9hUCZPvPmw@public.gmane.org>

---
 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 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [patch 1/1] drivers/acpi/osl.c : replace direct assignment with set_current_state()
@ 2005-07-07 21:29 domen-CvScVCPLwOZg9hUCZPvPmw
  0 siblings, 0 replies; 2+ messages in thread
From: domen-CvScVCPLwOZg9hUCZPvPmw @ 2005-07-07 21:29 UTC (permalink / raw)
  To: len.brown-ral2JQCrhuEAvxtiuMwx3w
  Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Christophe Lucas,
	domen-CvScVCPLwOZg9hUCZPvPmw

[-- Attachment #1: set_current_state-drivers_acpi_osl --]
[-- Type: text/plain, Size: 1181 bytes --]

From: Christophe Lucas <clucas-FNWCkmgu6Xgh9ZMKESR00Q@public.gmane.org>



Use set_current_state() instead of direct assignment of
current->state.

Signed-off-by: Christophe Lucas <clucas-FNWCkmgu6Xgh9ZMKESR00Q@public.gmane.org>
Signed-off-by: Domen Puncer <domen-CvScVCPLwOZg9hUCZPvPmw@public.gmane.org>

---
 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-07 21:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-13 22:23 [patch 1/1] drivers/acpi/osl.c : replace direct assignment with set_current_state() domen-CvScVCPLwOZg9hUCZPvPmw
  -- strict thread matches above, loose matches on Subject: below --
2005-07-07 21:29 domen-CvScVCPLwOZg9hUCZPvPmw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox