Skip to content

Commit

Permalink
ACPICA: Add GPE support for dynamically loaded ACPI tables
Browse files Browse the repository at this point in the history
For all GPEs, including FADT-based and GPE Block Devices, execute
any _PRW methods in the new table, and process any _Lxx/_Exx GPE
methods in the new table. Any runtime GPE that is referred to
by an _Lxx/_Exx method in the new table is immediately enabled.
ACPICA BZ 833.

http://www.acpica.org/bugzilla/show_bug.cgi?id=833

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Bob Moore authored and Len Brown committed May 6, 2010
1 parent b9ee204 commit 186c307
Show file tree
Hide file tree
Showing 5 changed files with 298 additions and 47 deletions.
2 changes: 2 additions & 0 deletions drivers/acpi/acpica/acevents.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ acpi_ev_create_gpe_block(struct acpi_namespace_node *gpe_device,
u32 interrupt_number,
struct acpi_gpe_block_info **return_gpe_block);

void acpi_ev_update_gpes(acpi_owner_id table_owner_id);

acpi_status
acpi_ev_initialize_gpe_block(struct acpi_namespace_node *gpe_device,
struct acpi_gpe_block_info *gpe_block);
Expand Down
4 changes: 4 additions & 0 deletions drivers/acpi/acpica/aclocal.h
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,10 @@ struct acpi_gpe_xrupt_info {
struct acpi_gpe_walk_info {
struct acpi_namespace_node *gpe_device;
struct acpi_gpe_block_info *gpe_block;
u16 count;
acpi_owner_id owner_id;
u8 enable_this_gpe;
u8 execute_by_owner_id;
};

struct acpi_gpe_device_info {
Expand Down
2 changes: 1 addition & 1 deletion drivers/acpi/acpica/evgpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ struct acpi_gpe_event_info *acpi_ev_get_gpe_event_info(acpi_handle gpe_device,

ACPI_FUNCTION_ENTRY();

/* A NULL gpe_block means use the FADT-defined GPE block(s) */
/* A NULL gpe_device means use the FADT-defined GPE block(s) */

if (!gpe_device) {

Expand Down
Loading

0 comments on commit 186c307

Please sign in to comment.