diff options
author | Bob Moore <robert.moore@intel.com> | 2007-02-02 11:48:19 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-02-02 21:14:22 -0500 |
commit | fdffb72d23172c91af56983f303d1986994df522 (patch) | |
tree | 159b22a5e1dfc895f266ac522559802e2dab5bf6 | |
parent | 2502fffb1958da66fa50a475081cb6827acdd9f3 (diff) |
ACPICA: Add acpi_gpe_count global to track the number of GPE events
Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r-- | drivers/acpi/events/evgpe.c | 2 | ||||
-rw-r--r-- | drivers/acpi/utilities/utglobal.c | 2 | ||||
-rw-r--r-- | include/acpi/acglobal.h | 4 |
3 files changed, 8 insertions, 0 deletions
diff --git a/drivers/acpi/events/evgpe.c b/drivers/acpi/events/evgpe.c index 1f98818fa64c..d9f71dda278a 100644 --- a/drivers/acpi/events/evgpe.c +++ b/drivers/acpi/events/evgpe.c | |||
@@ -618,6 +618,8 @@ acpi_ev_gpe_dispatch(struct acpi_gpe_event_info *gpe_event_info, u32 gpe_number) | |||
618 | 618 | ||
619 | ACPI_FUNCTION_TRACE(ev_gpe_dispatch); | 619 | ACPI_FUNCTION_TRACE(ev_gpe_dispatch); |
620 | 620 | ||
621 | acpi_gpe_count++; | ||
622 | |||
621 | /* | 623 | /* |
622 | * If edge-triggered, clear the GPE status bit now. Note that | 624 | * If edge-triggered, clear the GPE status bit now. Note that |
623 | * level-triggered events are cleared after the GPE is serviced. | 625 | * level-triggered events are cleared after the GPE is serviced. |
diff --git a/drivers/acpi/utilities/utglobal.c b/drivers/acpi/utilities/utglobal.c index 8809306ba94c..a524e75b7ae4 100644 --- a/drivers/acpi/utilities/utglobal.c +++ b/drivers/acpi/utilities/utglobal.c | |||
@@ -720,6 +720,7 @@ void acpi_ut_init_globals(void) | |||
720 | 720 | ||
721 | /* GPE support */ | 721 | /* GPE support */ |
722 | 722 | ||
723 | acpi_gpe_count = 0; | ||
723 | acpi_gbl_gpe_xrupt_list_head = NULL; | 724 | acpi_gbl_gpe_xrupt_list_head = NULL; |
724 | acpi_gbl_gpe_fadt_blocks[0] = NULL; | 725 | acpi_gbl_gpe_fadt_blocks[0] = NULL; |
725 | acpi_gbl_gpe_fadt_blocks[1] = NULL; | 726 | acpi_gbl_gpe_fadt_blocks[1] = NULL; |
@@ -779,3 +780,4 @@ void acpi_ut_init_globals(void) | |||
779 | 780 | ||
780 | ACPI_EXPORT_SYMBOL(acpi_dbg_level) | 781 | ACPI_EXPORT_SYMBOL(acpi_dbg_level) |
781 | ACPI_EXPORT_SYMBOL(acpi_dbg_layer) | 782 | ACPI_EXPORT_SYMBOL(acpi_dbg_layer) |
783 | ACPI_EXPORT_SYMBOL(acpi_gpe_count) | ||
diff --git a/include/acpi/acglobal.h b/include/acpi/acglobal.h index bd0fe7c6b384..715c4812fe71 100644 --- a/include/acpi/acglobal.h +++ b/include/acpi/acglobal.h | |||
@@ -80,6 +80,10 @@ extern u32 acpi_dbg_layer; | |||
80 | 80 | ||
81 | extern u32 acpi_gbl_nesting_level; | 81 | extern u32 acpi_gbl_nesting_level; |
82 | 82 | ||
83 | /* Event counters */ | ||
84 | |||
85 | ACPI_EXTERN u32 acpi_gpe_count; | ||
86 | |||
83 | /* Support for dynamic control method tracing mechanism */ | 87 | /* Support for dynamic control method tracing mechanism */ |
84 | 88 | ||
85 | ACPI_EXTERN u32 acpi_gbl_original_dbg_level; | 89 | ACPI_EXTERN u32 acpi_gbl_original_dbg_level; |