Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117304
b: refs/heads/master
c: 8bd108d
h: refs/heads/master
v: v3
  • Loading branch information
Alexey Starikovskiy authored and Len Brown committed Oct 23, 2008
1 parent 5287853 commit ce08ac2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eec935490172dbfa1a32647f9deb2b66a66f2741
refs/heads/master: 8bd108d14604d9c95000751e6c6ecbd11ea6ed40
2 changes: 2 additions & 0 deletions trunk/drivers/acpi/parser/psloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,8 @@ acpi_ps_complete_op(struct acpi_walk_state *walk_state,
*op = NULL;
}

ACPI_PREEMPTION_POINT();

return_ACPI_STATUS(AE_OK);
}

Expand Down
5 changes: 5 additions & 0 deletions trunk/include/acpi/acmacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -685,4 +685,9 @@ struct acpi_integer_overlay {

#endif /* ACPI_DBG_TRACK_ALLOCATIONS */

/* Preemption point */
#ifndef ACPI_PREEMPTION_POINT
#define ACPI_PREEMPTION_POINT() /* no preemption */
#endif

#endif /* ACMACROS_H */
6 changes: 6 additions & 0 deletions trunk/include/acpi/platform/aclinux.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/ctype.h>
#include <linux/sched.h>
#include <asm/system.h>
#include <asm/atomic.h>
#include <asm/div64.h>
Expand Down Expand Up @@ -137,4 +138,9 @@ 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)

/*
* We need to show where it is safe to preempt execution of ACPICA
*/
#define ACPI_PREEMPTION_POINT() cond_resched()

#endif /* __ACLINUX_H__ */

0 comments on commit ce08ac2

Please sign in to comment.