diff mbox

[2.6.32.stable] ACPI: don't cond_resched if irq is disabled

Message ID alpine.LFD.2.00.1001231411540.5156@localhost.localdomain (mailing list archive)
State New, archived
Headers show

Commit Message

Len Brown Jan. 23, 2010, 7:14 p.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)