[PATCH 9/11] sa1100fb: Reorder add_wait_queue() and set_current_state()

DORMANTno replies

From: Antonino A. Daplas <hidden>
Date: 2005-01-13 21:47:18

  Reorder add_wait_queue() and set_current_state() as a
  signal could be lost in between the two functions.

Signed-off-by: Nishanth Aravamudan <redacted>
Signed-off-by: Domen Puncer <redacted>
Signed-off-by: Antonino Daplas <redacted>
---

 sa1100fb.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -Nru a/drivers/video/sa1100fb.c b/drivers/video/sa1100fb.c
--- a/drivers/video/sa1100fb.c	2005-01-12 06:10:17 +08:00
+++ b/drivers/video/sa1100fb.c	2005-01-11 01:00:25 +08:00
@@ -1072,8 +1072,8 @@
 		GPCR |= SHANNON_GPIO_DISP_EN;
 	}	
 
-	add_wait_queue(&fbi->ctrlr_wait, &wait);
 	set_current_state(TASK_UNINTERRUPTIBLE);
+	add_wait_queue(&fbi->ctrlr_wait, &wait);
 
 	LCSR = 0xffffffff;	/* Clear LCD Status Register */
 	LCCR0 &= ~LCCR0_LDM;	/* Enable LCD Disable Done Interrupt */




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help