Skip to content

Commit 5f3cf23

Browse files
Zhe Qiaorafaeljw
authored andcommitted
ACPICA: Adjust the position of code lines
ACPICA commit 5da6daf5691169d2bf2e5c9e55baf093757312ca In the acpica/utcache.c file, adjust the position of the "ACPI_MEM_TRACKING(cache->total_allocated++);" code line to ensure that the increment operation on total_allocated is included within the ACPI_DBG_TRACK_ALLOCATIONS configuration. Link: acpica/acpica@5da6daf5 Signed-off-by: Zhe Qiao <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent d46825d commit 5f3cf23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/acpica/utcache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,9 @@ void *acpi_os_acquire_object(struct acpi_memory_list *cache)
251251
} else {
252252
/* The cache is empty, create a new object */
253253

254+
#ifdef ACPI_DBG_TRACK_ALLOCATIONS
254255
ACPI_MEM_TRACKING(cache->total_allocated++);
255256

256-
#ifdef ACPI_DBG_TRACK_ALLOCATIONS
257257
if ((cache->total_allocated - cache->total_freed) >
258258
cache->max_occupied) {
259259
cache->max_occupied =

0 commit comments

Comments
 (0)