Browse Source

ACPICA: Don't switch task then not allowed

Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
Alexey Starikovskiy 15 years ago
parent
commit
138d15692b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      include/acpi/platform/aclinux.h

+ 2 - 2
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)
 #define ACPI_FREE(a)            kfree(a)
 
 
 /* Used within ACPICA to show where it is safe to preempt execution */
 /* Used within ACPICA to show where it is safe to preempt execution */
-
+#include <linux/hardirq.h>
 #define ACPI_PREEMPTION_POINT() \
 #define ACPI_PREEMPTION_POINT() \
 	do { \
 	do { \
-		if (!irqs_disabled()) \
+		if (!in_atomic_preempt_off()) \
 			cond_resched(); \
 			cond_resched(); \
 	} while (0)
 	} while (0)