Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44937
b: refs/heads/master
c: e41334c
h: refs/heads/master
i:
  44935: f400e00
v: v3
  • Loading branch information
Alexey Starikovskiy authored and Len Brown committed Dec 8, 2006
1 parent b62fe7d commit d68132f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 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: af3fd1404fd4f0f58ebbb52b22be4f1ca0794cda
refs/heads/master: e41334c0a6ef71458f255db25f011d15099e7cca
12 changes: 4 additions & 8 deletions trunk/drivers/acpi/ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,24 +428,21 @@ static void acpi_ec_gpe_query(void *ec_cxt)
static char object_name[8];

if (!ec)
goto end;
return;

value = acpi_ec_read_status(ec);

if (!(value & ACPI_EC_FLAG_SCI))
goto end;
return;

if (acpi_ec_query(ec, &value))
goto end;
return;

snprintf(object_name, 8, "_Q%2.2X", value);

printk(KERN_INFO PREFIX "evaluating %s\n", object_name);

acpi_evaluate_object(ec->handle, object_name, NULL, NULL);

end:
acpi_enable_gpe(NULL, ec->gpe_bit, ACPI_NOT_ISR);
}

static u32 acpi_ec_gpe_handler(void *data)
Expand All @@ -454,7 +451,6 @@ static u32 acpi_ec_gpe_handler(void *data)
u8 value;
struct acpi_ec *ec = (struct acpi_ec *)data;

acpi_clear_gpe(NULL, ec->gpe_bit, ACPI_ISR);

if (acpi_ec_mode == EC_INTR) {
wake_up(&ec->wait);
Expand All @@ -464,7 +460,7 @@ static u32 acpi_ec_gpe_handler(void *data)
if (value & ACPI_EC_FLAG_SCI) {
status = acpi_os_execute(OSL_EC_BURST_HANDLER, acpi_ec_gpe_query, ec);
}
acpi_enable_gpe(NULL, ec->gpe_bit, ACPI_ISR);

return status == AE_OK ?
ACPI_INTERRUPT_HANDLED : ACPI_INTERRUPT_NOT_HANDLED;
}
Expand Down

0 comments on commit d68132f

Please sign in to comment.