Skip to content

Commit

Permalink
ACPICA: Don't switch task then not allowed
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Alexey Starikovskiy authored and lenb committed Aug 29, 2009
1 parent 326ba50 commit 138d156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/acpi/platform/aclinux.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 138d156

Please sign in to comment.