Commit fde09706 authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Jeff Garzik

[PATCH] sata vs suspend-to-ram

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
parent d456c644
...@@ -2600,6 +2600,10 @@ static int ata_thread (void *data) ...@@ -2600,6 +2600,10 @@ static int ata_thread (void *data)
if (signal_pending (current)) if (signal_pending (current))
flush_signals(current); flush_signals(current);
if (current->flags & PF_FREEZE)
refrigerator(PF_IOTHREAD);
if ((timeout < 0) || (ap->time_to_die)) if ((timeout < 0) || (ap->time_to_die))
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment