diff options
Diffstat (limited to 'drivers/acpi/acpica/exdebug.c')
-rw-r--r-- | drivers/acpi/acpica/exdebug.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/exdebug.c b/drivers/acpi/acpica/exdebug.c index 4cfc3d3b5c97..6fbfad47518c 100644 --- a/drivers/acpi/acpica/exdebug.c +++ b/drivers/acpi/acpica/exdebug.c | |||
@@ -75,6 +75,7 @@ acpi_ex_do_debug_object(union acpi_operand_object *source_desc, | |||
75 | u32 level, u32 index) | 75 | u32 level, u32 index) |
76 | { | 76 | { |
77 | u32 i; | 77 | u32 i; |
78 | u32 timer; | ||
78 | 79 | ||
79 | ACPI_FUNCTION_TRACE_PTR(ex_do_debug_object, source_desc); | 80 | ACPI_FUNCTION_TRACE_PTR(ex_do_debug_object, source_desc); |
80 | 81 | ||
@@ -86,11 +87,19 @@ acpi_ex_do_debug_object(union acpi_operand_object *source_desc, | |||
86 | } | 87 | } |
87 | 88 | ||
88 | /* | 89 | /* |
90 | * We will emit the current timer value (in microseconds) with each | ||
91 | * debug output. Only need the lower 26 bits. This allows for 67 | ||
92 | * million microseconds or 67 seconds before rollover. | ||
93 | */ | ||
94 | timer = ((u32)acpi_os_get_timer() / 10); /* (100 nanoseconds to microseconds) */ | ||
95 | timer &= 0x03FFFFFF; | ||
96 | |||
97 | /* | ||
89 | * Print line header as long as we are not in the middle of an | 98 | * Print line header as long as we are not in the middle of an |
90 | * object display | 99 | * object display |
91 | */ | 100 | */ |
92 | if (!((level > 0) && index == 0)) { | 101 | if (!((level > 0) && index == 0)) { |
93 | acpi_os_printf("[ACPI Debug] %*s", level, " "); | 102 | acpi_os_printf("[ACPI Debug %.8u] %*s", timer, level, " "); |
94 | } | 103 | } |
95 | 104 | ||
96 | /* Display the index for package output only */ | 105 | /* Display the index for package output only */ |