Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 138d1569 authored by Alexey Starikovskiy's avatar Alexey Starikovskiy Committed by Len Brown
Browse files

ACPICA: Don't switch task then not allowed

parent 326ba501
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)