diff options
author | Alexey Starikovskiy <astarikovskiy@suse.de> | 2008-09-25 19:40:30 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-10-23 05:14:41 +0200 |
commit | 8bd108d14604d9c95000751e6c6ecbd11ea6ed40 (patch) | |
tree | af101e1f12330fe76d5a973851ea84fb1c2eb220 /include/acpi/platform | |
parent | ACPICA: Update version to 20080729 (diff) | |
download | linux-8bd108d14604d9c95000751e6c6ecbd11ea6ed40.tar.xz linux-8bd108d14604d9c95000751e6c6ecbd11ea6ed40.zip |
ACPICA: add preemption point after each opcode parse
Reference: http://marc.info/?l=linux-acpi&m=122236382701062&w=2
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Tested-by: Sitsofe Wheeler <sitsofe@yahoo.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi/platform')
-rw-r--r-- | include/acpi/platform/aclinux.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h index 9af464598682..029c8c06c151 100644 --- a/include/acpi/platform/aclinux.h +++ b/include/acpi/platform/aclinux.h @@ -53,6 +53,7 @@ #include <linux/kernel.h> #include <linux/module.h> #include <linux/ctype.h> +#include <linux/sched.h> #include <asm/system.h> #include <asm/atomic.h> #include <asm/div64.h> @@ -137,4 +138,9 @@ static inline void *acpi_os_acquire_object(acpi_cache_t * cache) #define ACPI_ALLOCATE_ZEROED(a) acpi_os_allocate_zeroed(a) #define ACPI_FREE(a) kfree(a) +/* + * We need to show where it is safe to preempt execution of ACPICA + */ +#define ACPI_PREEMPTION_POINT() cond_resched() + #endif /* __ACLINUX_H__ */ |