diff mbox

[-V2] acpi: don't cond_resched if irq is disabled

Message ID 1260446205-16868-1-git-send-email-dfeng@redhat.com (mailing list archive)
State RFC, archived
Headers show

Commit Message

Xiaotian Feng Dec. 10, 2009, 11:56 a.m. UTC
None
diff mbox

Patch

diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h
index 9d7febd..0946997 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)
 #include <linux/hardirq.h>
 #define ACPI_PREEMPTION_POINT() \
 	do { \
-		if (!in_atomic_preempt_off()) \
+		if (!in_atomic_preempt_off() && !irqs_disabled()) \
 			cond_resched(); \
 	} while (0)