Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33423
b: refs/heads/master
c: d68909f
h: refs/heads/master
i:
  33421: 130628f
  33419: 6226b8a
  33415: 3cfef47
  33407: a74fec0
v: v3
  • Loading branch information
Len Brown committed Aug 16, 2006
1 parent 370099f commit be41c3f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 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: b5240b32b9b2b75917c478d768191862a2b190cc
refs/heads/master: d68909f4c3eee09c13d4e5c86512c6c075553dbd
10 changes: 10 additions & 0 deletions trunk/drivers/acpi/osl.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,16 @@ acpi_status acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 timeout)
ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, "Waiting for semaphore[%p|%d|%d]\n",
handle, units, timeout));

/*
* This can be called during resume with interrupts off.
* Like boot-time, we should be single threaded and will
* always get the lock if we try -- timeout or not.
* If this doesn't succeed, then we will oops courtesy of
* might_sleep() in down().
*/
if (!down_trylock(sem))
return AE_OK;

switch (timeout) {
/*
* No Wait:
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/acpi/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ acpi_evaluate_integer(acpi_handle handle,
if (!data)
return AE_BAD_PARAMETER;

element = kmalloc(sizeof(union acpi_object), GFP_KERNEL);
element = kmalloc(sizeof(union acpi_object), irqs_disabled() ? GFP_ATOMIC: GFP_KERNEL);
if (!element)
return AE_NO_MEMORY;

Expand Down

0 comments on commit be41c3f

Please sign in to comment.