]> git.hungrycats.org Git - linux/commitdiff
[PATCH] sata vs suspend-to-ram
authorArjan van de Ven <arjanv@redhat.com>
Mon, 8 Mar 2004 16:56:57 +0000 (11:56 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 8 Mar 2004 16:56:57 +0000 (11:56 -0500)
The following patch is a very crude one to at least not make sata block
suspend-to-ram entirely. Probably you want more powermanagement handling as
well... but it's a start

drivers/scsi/libata-core.c

index a48df016880274e2840f120fbe99f4221b268275..f3a2aae63380d0571d734846aad4483084129cf0 100644 (file)
@@ -2600,6 +2600,10 @@ static int ata_thread (void *data)
 
                 if (signal_pending (current))
                         flush_signals(current);
+                        
+                if (current->flags & PF_FREEZE)
+                       refrigerator(PF_IOTHREAD);
+                                                        
 
                 if ((timeout < 0) || (ap->time_to_die))
                         break;