Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S270619AbTGNMhr (ORCPT ); Mon, 14 Jul 2003 08:37:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S270584AbTGNMhZ (ORCPT ); Mon, 14 Jul 2003 08:37:25 -0400 Received: from maild.telia.com ([194.22.190.101]:49888 "EHLO maild.telia.com") by vger.kernel.org with ESMTP id S270600AbTGNMZC (ORCPT ); Mon, 14 Jul 2003 08:25:02 -0400 X-Original-Recipient: linux-kernel@vger.kernel.org To: Jeff Garzik Cc: Kernel Mailing List Subject: Software suspend and RTL 8139too in 2.6.0-test1 From: Peter Osterlund Date: 14 Jul 2003 14:37:47 +0200 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1036 Lines: 29 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 #include #include +#include #include #include @@ -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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/