From patchwork Fri Aug 28 19:29:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Starikovskiy X-Patchwork-Id: 44572 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 n7SJTfRG017175 for ; Fri, 28 Aug 2009 19:29:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752645AbZH1T3h (ORCPT ); Fri, 28 Aug 2009 15:29:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752158AbZH1T3h (ORCPT ); Fri, 28 Aug 2009 15:29:37 -0400 Received: from charybdis-ext.suse.de ([195.135.221.2]:58954 "EHLO emea5-mh.id5.novell.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752645AbZH1T3h (ORCPT ); Fri, 28 Aug 2009 15:29:37 -0400 Received: from [127.0.1.1] ([149.44.162.75]) by emea5-mh.id5.novell.com with ESMTP; Fri, 28 Aug 2009 21:29:37 +0200 From: Alexey Starikovskiy To: Len Brown Cc: Linux-acpi@vger.kernel.org Subject: [PATCH 1/3] ACPICA: Don't switch task then not allowed Date: Fri, 28 Aug 2009 23:29:38 +0400 Message-ID: <20090828192938.19961.63714.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 | 4 ++-- 1 files changed, 2 insertions(+), 2 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..9d7febd 100644 --- a/include/acpi/platform/aclinux.h +++ b/include/acpi/platform/aclinux.h @@ -149,10 +149,10 @@ static inline void *acpi_os_acquire_object(acpi_cache_t * cache) #define ACPI_FREE(a) kfree(a) /* Used within ACPICA to show where it is safe to preempt execution */ - +#include #define ACPI_PREEMPTION_POINT() \ do { \ - if (!irqs_disabled()) \ + if (!in_atomic_preempt_off()) \ cond_resched(); \ } while (0)