diff options
Diffstat (limited to 'drivers/acpi/utilities/utalloc.c')
-rw-r--r-- | drivers/acpi/utilities/utalloc.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/acpi/utilities/utalloc.c b/drivers/acpi/utilities/utalloc.c index f6cbc0b1bfd0..55a764807499 100644 --- a/drivers/acpi/utilities/utalloc.c +++ b/drivers/acpi/utilities/utalloc.c | |||
@@ -5,7 +5,7 @@ | |||
5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2006, R. Byron Moore | 8 | * Copyright (C) 2000 - 2007, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
@@ -42,6 +42,7 @@ | |||
42 | */ | 42 | */ |
43 | 43 | ||
44 | #include <acpi/acpi.h> | 44 | #include <acpi/acpi.h> |
45 | #include <acpi/acdebug.h> | ||
45 | 46 | ||
46 | #define _COMPONENT ACPI_UTILITIES | 47 | #define _COMPONENT ACPI_UTILITIES |
47 | ACPI_MODULE_NAME("utalloc") | 48 | ACPI_MODULE_NAME("utalloc") |
@@ -142,6 +143,14 @@ acpi_status acpi_ut_create_caches(void) | |||
142 | 143 | ||
143 | acpi_status acpi_ut_delete_caches(void) | 144 | acpi_status acpi_ut_delete_caches(void) |
144 | { | 145 | { |
146 | #ifdef ACPI_DBG_TRACK_ALLOCATIONS | ||
147 | char buffer[7]; | ||
148 | |||
149 | if (acpi_gbl_display_final_mem_stats) { | ||
150 | ACPI_STRCPY(buffer, "MEMORY"); | ||
151 | acpi_db_display_statistics(buffer); | ||
152 | } | ||
153 | #endif | ||
145 | 154 | ||
146 | (void)acpi_os_delete_cache(acpi_gbl_namespace_cache); | 155 | (void)acpi_os_delete_cache(acpi_gbl_namespace_cache); |
147 | acpi_gbl_namespace_cache = NULL; | 156 | acpi_gbl_namespace_cache = NULL; |