From 5cd8cdccd34383ddfc06bcd859820bc5c206e14c Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Sat, 19 Jul 2003 04:39:21 -0400 Subject: [PATCH] [PATCH] Software suspend and RTL 8139too in 2.6.0-test1 This patch is needed to make software suspend work with the 8139too driver loaded. --- drivers/net/8139too.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/8139too.c b/drivers/net/8139too.c index a72eb1909f49b..1e5f124f6071a 100644 --- a/drivers/net/8139too.c +++ b/drivers/net/8139too.c @@ -110,6 +110,7 @@ #include #include #include +#include #include #include @@ -1597,6 +1598,9 @@ static int rtl8139_thread (void *data) 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)) { -- 2.53.0