From: Alexey Starikovskiy <astarikovskiy@suse.de>
To: Len Brown <lenb@kernel.org>
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 [thread overview]
Message-ID: <20090828192938.19961.63714.stgit@thinkpad> (raw)
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
---
include/acpi/platform/aclinux.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
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 <linux/hardirq.h>
#define ACPI_PREEMPTION_POINT() \
do { \
- if (!irqs_disabled()) \
+ if (!in_atomic_preempt_off()) \
cond_resched(); \
} while (0)
next reply other threads:[~2009-08-28 19:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-28 19:29 Alexey Starikovskiy [this message]
2009-08-28 19:29 ` [PATCH 2/3] ACPI: EC: use BURST mode only for MSI notebooks Alexey Starikovskiy
2009-08-29 18:40 ` Len Brown
2009-08-28 19:29 ` [PATCH 3/3] ACPI: EC: Drop orphan comment Alexey Starikovskiy
2009-08-29 18:40 ` Len Brown
2009-08-29 18:41 ` [PATCH 1/3] ACPICA: Don't switch task then not allowed Len Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090828192938.19961.63714.stgit@thinkpad \
--to=astarikovskiy@suse.de \
--cc=Linux-acpi@vger.kernel.org \
--cc=lenb@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox