summaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2009-09-19 08:10:27 +0200
committerLen Brown <len.brown@intel.com>2009-09-19 08:10:27 +0200
commit7ef0143e2f898f9bf675c81bdf0e045c8dd53c57 (patch)
tree6042d768a0d95afeddd50890246a8be1720b86ef /include/acpi
parentMerge branch 'power-meter' into release (diff)
parentACPICA: Don't switch task then not allowed (diff)
downloadlinux-7ef0143e2f898f9bf675c81bdf0e045c8dd53c57.tar.xz
linux-7ef0143e2f898f9bf675c81bdf0e045c8dd53c57.zip
Merge branch 'preempt' into release
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/platform/aclinux.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h
index fcb8e4b159b1..9d7febde10a1 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)