]> err.no Git - linux-2.6/commitdiff
ACPICA: Add acpi_gpe_count global to track the number of GPE events
authorBob Moore <robert.moore@intel.com>
Fri, 2 Feb 2007 16:48:19 +0000 (19:48 +0300)
committerLen Brown <len.brown@intel.com>
Sat, 3 Feb 2007 02:14:22 +0000 (21:14 -0500)
Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/events/evgpe.c
drivers/acpi/utilities/utglobal.c
include/acpi/acglobal.h

index 1f98818fa64c214aa4d8b898adc0f85e9c26f578..d9f71dda278af854605a77ba2b680b4b932ad2d9 100644 (file)
@@ -618,6 +618,8 @@ acpi_ev_gpe_dispatch(struct acpi_gpe_event_info *gpe_event_info, u32 gpe_number)
 
        ACPI_FUNCTION_TRACE(ev_gpe_dispatch);
 
+       acpi_gpe_count++;
+
        /*
         * If edge-triggered, clear the GPE status bit now.  Note that
         * level-triggered events are cleared after the GPE is serviced.
index 8809306ba94cadfe832bdbdb3f0141b6630d0ef3..a524e75b7ae4122455133997d3bd84c4bb9e5f97 100644 (file)
@@ -720,6 +720,7 @@ void acpi_ut_init_globals(void)
 
        /* GPE support */
 
+       acpi_gpe_count = 0;
        acpi_gbl_gpe_xrupt_list_head = NULL;
        acpi_gbl_gpe_fadt_blocks[0] = NULL;
        acpi_gbl_gpe_fadt_blocks[1] = NULL;
@@ -779,3 +780,4 @@ void acpi_ut_init_globals(void)
 
 ACPI_EXPORT_SYMBOL(acpi_dbg_level)
 ACPI_EXPORT_SYMBOL(acpi_dbg_layer)
+ACPI_EXPORT_SYMBOL(acpi_gpe_count)
index bd0fe7c6b384e2016e4bd22384b21b181ddfc0ab..715c4812fe7160dfae49394132f91b27140a1f7f 100644 (file)
@@ -80,6 +80,10 @@ extern u32 acpi_dbg_layer;
 
 extern u32 acpi_gbl_nesting_level;
 
+/* Event counters */
+
+ACPI_EXTERN u32 acpi_gpe_count;
+
 /* Support for dynamic control method tracing mechanism */
 
 ACPI_EXTERN u32 acpi_gbl_original_dbg_level;