From: Peter Osterlund <petero2@telia.com> To: Jeff Garzik <jgarzik@pobox.com> Cc: Kernel Mailing List <linux-kernel@vger.kernel.org> Subject: Software suspend and RTL 8139too in 2.6.0-test1 Date: 14 Jul 2003 14:37:47 +0200 [thread overview] Message-ID: <m2wuelqo6c.fsf@telia.com> (raw) 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
next reply other threads:[~2003-07-14 12:37 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-07-14 12:37 Peter Osterlund [this message] 2003-07-20 20:10 ` Pavel Machek 2003-07-20 22:03 ` Peter Osterlund
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=m2wuelqo6c.fsf@telia.com \ --to=petero2@telia.com \ --cc=jgarzik@pobox.com \ --cc=linux-kernel@vger.kernel.org \ --subject='Re: Software suspend and RTL 8139too in 2.6.0-test1' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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).