mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 07:22:34 +00:00
ACPICA: Don't switch task then not allowed
Signed-off-by: Alexey Starikovskiy <[email protected]> Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
committed by
Len Brown
parent
326ba5010a
commit
138d15692b
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user