From patchwork Thu Oct 22 18:20:16 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lennert Buytenhek X-Patchwork-Id: 55417 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9MIbexN005711 for ; Thu, 22 Oct 2009 18:37:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756624AbZJVShd (ORCPT ); Thu, 22 Oct 2009 14:37:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756260AbZJVShc (ORCPT ); Thu, 22 Oct 2009 14:37:32 -0400 Received: from fw.wantstofly.org ([80.101.37.227]:49169 "EHLO mail.wantstofly.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756034AbZJVShK (ORCPT ); Thu, 22 Oct 2009 14:37:10 -0400 Received: by mail.wantstofly.org (Postfix, from userid 500) id E994F18E241; Thu, 22 Oct 2009 20:20:16 +0200 (CEST) Date: Thu, 22 Oct 2009 20:20:16 +0200 From: Lennert Buytenhek To: linux-wireless@vger.kernel.org Subject: [PATCH 09/28] mwl8k: use cond_resched() when loading firmware blocks Message-ID: <20091022182016.GK1583@mail.wantstofly.org> Mime-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index fcf7139..496d3c5 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -428,6 +429,7 @@ mwl8k_send_fw_load_cmd(struct mwl8k_priv *priv, void *data, int length) break; } + cond_resched(); udelay(1); } while (--loops);