linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Software suspend and RTL 8139too in 2.6.0-test1
@ 2003-07-14 12:37 Peter Osterlund
  2003-07-20 20:10 ` Pavel Machek
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Osterlund @ 2003-07-14 12:37 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Kernel Mailing List

Hi!

This patch is needed to make software suspend work with the 8139too
driver loaded.

--- linux/drivers/net/8139too.c.old	Mon Jul 14 14:28:27 2003
+++ linux/drivers/net/8139too.c	Mon Jul 14 13:23:07 2003
@@ -110,6 +110,7 @@
 #include <linux/mii.h>
 #include <linux/completion.h>
 #include <linux/crc32.h>
+#include <linux/suspend.h>
 #include <asm/io.h>
 #include <asm/uaccess.h>
 
@@ -1597,6 +1598,9 @@
 		timeout = next_tick;
 		do {
 			timeout = interruptible_sleep_on_timeout (&tp->thr_wait, timeout);
+			/* make swsusp happy with our thread */
+			if (current->flags & PF_FREEZE)
+				refrigerator(PF_IOTHREAD);
 		} while (!signal_pending (current) && (timeout > 0));
 
 		if (signal_pending (current)) {

-- 
Peter Osterlund - petero2@telia.com
http://w1.894.telia.com/~u89404340

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

end of thread, other threads:[~2003-07-20 23:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-14 12:37 Software suspend and RTL 8139too in 2.6.0-test1 Peter Osterlund
2003-07-20 20:10 ` Pavel Machek
2003-07-20 22:03   ` Peter Osterlund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).