From patchwork Thu Aug 27 22:39:35 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Starikovskiy X-Patchwork-Id: 44353 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 n7RMdcbj021041 for ; Thu, 27 Aug 2009 22:39:38 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751276AbZH0Wje (ORCPT ); Thu, 27 Aug 2009 18:39:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751481AbZH0Wje (ORCPT ); Thu, 27 Aug 2009 18:39:34 -0400 Received: from charybdis-ext.suse.de ([195.135.221.2]:51684 "EHLO emea5-mh.id5.novell.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751276AbZH0Wjd (ORCPT ); Thu, 27 Aug 2009 18:39:33 -0400 Received: from [127.0.1.1] ([149.44.162.75]) by emea5-mh.id5.novell.com with ESMTP; Fri, 28 Aug 2009 00:39:34 +0200 From: Alexey Starikovskiy To: Len Brown Cc: Linux-acpi@vger.kernel.org Subject: [PATCH] ACPICA: Don't switch task then not allowed Date: Fri, 28 Aug 2009 02:39:35 +0400 Message-ID: <20090827223935.25504.42480.stgit@thinkpad> User-Agent: StGIT/0.14.2 MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Signed-off-by: Alexey Starikovskiy --- include/acpi/platform/aclinux.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h index fcb8e4b..23b262b 100644 --- a/include/acpi/platform/aclinux.h +++ b/include/acpi/platform/aclinux.h @@ -152,7 +152,7 @@ static inline void *acpi_os_acquire_object(acpi_cache_t * cache) #define ACPI_PREEMPTION_POINT() \ do { \ - if (!irqs_disabled()) \ + if (!in_atomic_preempt_off()) \ cond_resched(); \ } while (0)