|
@@ -148,13 +148,17 @@ static inline void *acpi_os_acquire_object(acpi_cache_t * cache)
|
|
|
#define ACPI_ALLOCATE_ZEROED(a) acpi_os_allocate_zeroed(a)
|
|
#define ACPI_ALLOCATE_ZEROED(a) acpi_os_allocate_zeroed(a)
|
|
|
#define ACPI_FREE(a) kfree(a)
|
|
#define ACPI_FREE(a) kfree(a)
|
|
|
|
|
|
|
|
-/* Used within ACPICA to show where it is safe to preempt execution */
|
|
|
|
|
-#include <linux/hardirq.h>
|
|
|
|
|
|
|
+#ifndef CONFIG_PREEMPT
|
|
|
|
|
+/*
|
|
|
|
|
+ * Used within ACPICA to show where it is safe to preempt execution
|
|
|
|
|
+ * when CONFIG_PREEMPT=n
|
|
|
|
|
+ */
|
|
|
#define ACPI_PREEMPTION_POINT() \
|
|
#define ACPI_PREEMPTION_POINT() \
|
|
|
do { \
|
|
do { \
|
|
|
- if (!in_atomic_preempt_off() && !irqs_disabled()) \
|
|
|
|
|
|
|
+ if (!irqs_disabled()) \
|
|
|
cond_resched(); \
|
|
cond_resched(); \
|
|
|
} while (0)
|
|
} while (0)
|
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#endif /* __KERNEL__ */
|
|
#endif /* __KERNEL__ */
|
|
|
|
|
|