Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208894
b: refs/heads/master
c: 0a7992c
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Linus Torvalds committed Aug 12, 2010
1 parent 1f0c19a commit f31ec72
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d78a3eda6985e74bc21a23362f27526f73e71649
refs/heads/master: 0a7992c90828a65281c3c9cf180be3b432d277b2
1 change: 1 addition & 0 deletions trunk/drivers/acpi/apei/erst.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <linux/uaccess.h>
#include <linux/cper.h>
#include <linux/nmi.h>
#include <linux/hardirq.h>
#include <acpi/apei.h>

#include "apei-internal.h"
Expand Down
10 changes: 7 additions & 3 deletions trunk/include/acpi/platform/aclinux.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_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() \
do { \
if (!in_atomic_preempt_off() && !irqs_disabled()) \
if (!irqs_disabled()) \
cond_resched(); \
} while (0)
#endif

#endif /* __KERNEL__ */

Expand Down

0 comments on commit f31ec72

Please sign in to comment.