From patchwork Tue Aug 10 15:36:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Piotr Hosowicz X-Patchwork-Id: 118571 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7AFaYVS002966 for ; Tue, 10 Aug 2010 15:36:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932157Ab0HJPgd (ORCPT ); Tue, 10 Aug 2010 11:36:33 -0400 Received: from 70.mail-out.ovh.net ([91.121.185.63]:41498 "HELO 70.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S932156Ab0HJPgd (ORCPT ); Tue, 10 Aug 2010 11:36:33 -0400 Received: (qmail 26789 invoked by uid 503); 10 Aug 2010 15:30:59 -0000 Received: from b7.ovh.net (HELO mail409.ha.ovh.net) (213.186.33.57) by 70.mail-out.ovh.net with SMTP; 10 Aug 2010 15:30:59 -0000 Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 10 Aug 2010 17:36:31 +0200 Received: from afjj143.neoplus.adsl.tpnet.pl (HELO ?95.49.243.143?) (piotr%hosowicz.com@95.49.243.143) by ns0.ovh.net with SMTP; 10 Aug 2010 17:36:29 +0200 Message-ID: <4C6171FC.6060305@example.com> Date: Tue, 10 Aug 2010 17:36:28 +0200 From: Piotr Hosowicz Reply-To: piotr@hosowicz.com Organization: hosowicz.com User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 To: Sergey Senozhatsky CC: Markus Trippelsdorf , Heinz Diehl , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: BUG: scheduling while atomic: swapper/0/0x10000002 References: <20100810142951.GA7156@arch.tripp.de> <4C616DF9.1070309@example.com> <20100810153538.GB5466@swordfish.minsk.epam.com> In-Reply-To: <20100810153538.GB5466@swordfish.minsk.epam.com> X-Ovh-Tracer-Id: 8213721297129664824 X-Ovh-Remote: 95.49.243.143 (afjj143.neoplus.adsl.tpnet.pl) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|U 0.5/N Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 10 Aug 2010 15:36:35 +0000 (UTC) --- include/acpi/platform/aclinux.h +++ include/acpi/platform/aclinux.h @@ -152,7 +152,7 @@ #include #define ACPI_PREEMPTION_POINT() \ do { \ - if (!in_atomic_preempt_off() && !irqs_disabled()) \ + if (!in_atomic() && !irqs_disabled()) \ cond_resched(); \ } while (0)