Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44939
b: refs/heads/master
c: c787a85
h: refs/heads/master
i:
  44937: d68132f
  44935: f400e00
v: v3
  • Loading branch information
Alexey Starikovskiy authored and Len Brown committed Dec 8, 2006
1 parent 617bab1 commit 8290a1e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 5d0c288b7362ad7ee235b59352ac2a89480e4757
refs/heads/master: c787a8551e7fee85366962881e7a4f2fda656dfc
12 changes: 6 additions & 6 deletions trunk/drivers/acpi/ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ struct acpi_ec {
unsigned long command_addr;
unsigned long data_addr;
unsigned long global_lock;
struct semaphore sem;
struct mutex lock;
atomic_t query_pending;
atomic_t leaving_burst; /* 0 : No, 1 : Yes, 2: abort */
wait_queue_head_t wait;
Expand Down Expand Up @@ -294,7 +294,7 @@ static int acpi_ec_transaction(struct acpi_ec *ec, u8 command,
if (ACPI_FAILURE(status))
return -ENODEV;
}
down(&ec->sem);
mutex_lock(&ec->lock);

/* Make sure GPE is enabled before doing transaction */
acpi_enable_gpe(NULL, ec->gpe_bit, ACPI_NOT_ISR);
Expand All @@ -310,7 +310,7 @@ static int acpi_ec_transaction(struct acpi_ec *ec, u8 command,
rdata, rdata_len);

end:
up(&ec->sem);
mutex_unlock(&ec->lock);

if (ec->global_lock)
acpi_release_global_lock(glk);
Expand Down Expand Up @@ -647,7 +647,7 @@ static int acpi_ec_add(struct acpi_device *device)

ec->handle = device->handle;
ec->uid = -1;
init_MUTEX(&ec->sem);
mutex_init(&ec->lock);
atomic_set(&ec->query_pending, 0);
if (acpi_ec_mode == EC_INTR) {
atomic_set(&ec->leaving_burst, 1);
Expand Down Expand Up @@ -830,7 +830,7 @@ acpi_fake_ecdt_callback(acpi_handle handle,
{
acpi_status status;

init_MUTEX(&ec_ecdt->sem);
mutex_init(&ec_ecdt->lock);
if (acpi_ec_mode == EC_INTR) {
init_waitqueue_head(&ec_ecdt->wait);
}
Expand Down Expand Up @@ -915,7 +915,7 @@ static int __init acpi_ec_get_real_ecdt(void)
return -ENOMEM;
memset(ec_ecdt, 0, sizeof(struct acpi_ec));

init_MUTEX(&ec_ecdt->sem);
mutex_init(&ec_ecdt->lock);
if (acpi_ec_mode == EC_INTR) {
init_waitqueue_head(&ec_ecdt->wait);
}
Expand Down

0 comments on commit 8290a1e

Please sign in to comment.