diff options
Diffstat (limited to 'drivers/acpi/utilities/utcache.c')
-rw-r--r-- | drivers/acpi/utilities/utcache.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/acpi/utilities/utcache.c b/drivers/acpi/utilities/utcache.c index 07588812e72d..c0df0585c683 100644 --- a/drivers/acpi/utilities/utcache.c +++ b/drivers/acpi/utilities/utcache.c | |||
@@ -74,6 +74,9 @@ acpi_os_create_cache ( | |||
74 | struct acpi_memory_list *cache; | 74 | struct acpi_memory_list *cache; |
75 | 75 | ||
76 | 76 | ||
77 | ACPI_FUNCTION_ENTRY (); | ||
78 | |||
79 | |||
77 | if (!cache_name || !return_cache || (object_size < 16)) { | 80 | if (!cache_name || !return_cache || (object_size < 16)) { |
78 | return (AE_BAD_PARAMETER); | 81 | return (AE_BAD_PARAMETER); |
79 | } | 82 | } |
@@ -161,7 +164,10 @@ acpi_os_delete_cache ( | |||
161 | acpi_status status; | 164 | acpi_status status; |
162 | 165 | ||
163 | 166 | ||
164 | /* Purge all objects in the cache */ | 167 | ACPI_FUNCTION_ENTRY (); |
168 | |||
169 | |||
170 | /* Purge all objects in the cache */ | ||
165 | 171 | ||
166 | status = acpi_os_purge_cache (cache); | 172 | status = acpi_os_purge_cache (cache); |
167 | if (ACPI_FAILURE (status)) { | 173 | if (ACPI_FAILURE (status)) { |
@@ -259,7 +265,7 @@ acpi_os_acquire_object ( | |||
259 | void *object; | 265 | void *object; |
260 | 266 | ||
261 | 267 | ||
262 | ACPI_FUNCTION_NAME ("ut_acquire_from_cache"); | 268 | ACPI_FUNCTION_NAME ("os_acquire_object"); |
263 | 269 | ||
264 | 270 | ||
265 | if (!cache) { | 271 | if (!cache) { |
@@ -286,7 +292,7 @@ acpi_os_acquire_object ( | |||
286 | 292 | ||
287 | ACPI_MEM_TRACKING (cache->hits++); | 293 | ACPI_MEM_TRACKING (cache->hits++); |
288 | ACPI_MEM_TRACKING (ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, | 294 | ACPI_MEM_TRACKING (ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, |
289 | "Object %p from %s\n", object, cache->list_name))); | 295 | "Object %p from %s cache\n", object, cache->list_name))); |
290 | 296 | ||
291 | status = acpi_ut_release_mutex (ACPI_MTX_CACHES); | 297 | status = acpi_ut_release_mutex (ACPI_MTX_CACHES); |
292 | if (ACPI_FAILURE (status)) { | 298 | if (ACPI_FAILURE (status)) { |