Skip to contentSkip to conversation

PATCH: atari sleep_on noise

PATCH Alan Cox 1 participant 1 message Jun 15, 2006

Subsystems (2)
lore
Share & tools
lore

Alan Cox

author
#0 lore raw

Dunno if anyone cares, dunno if its actually neccessary given the local_irq_save but it cuts down on the noise when removing deprecated bits and it seems trivial ...

drivers/scsi/atari_scsi.c +3 -3
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.17-rc6/drivers/scsi/atari_scsi.c linux-2.6.17-rc6/drivers/scsi/atari_scsi.c
@@ -559,8 +559,8 @@
 
 	local_irq_save(flags);
 
-	while( !in_interrupt() && falcon_got_lock && stdma_others_waiting() )
-		sleep_on( &falcon_fairness_wait );
+	if( !in_interrupt())
+		wait_event(&falcon_fairness_wait, falcon_got_lock && stdma_others_waiting());
 
 	while (!falcon_got_lock) {
 		if (in_interrupt())
@@ -573,7 +573,7 @@
 			wake_up( &falcon_try_wait );
 		}
 		else {
-			sleep_on( &falcon_try_wait );
+			wait_event(&falcon_try_wait, !falcon_trying_lock );
 		}
 	}