projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d46825d
)
ACPICA: Adjust the position of code lines
author
Zhe Qiao
<qiaozhe@iscas.ac.cn>
Fri, 25 Apr 2025 19:29:48 +0000
(21:29 +0200)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Mon, 12 May 2025 13:38:42 +0000
(15:38 +0200)
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:
https://github.com/acpica/acpica/commit/5da6daf5
Signed-off-by: Zhe Qiao <qiaozhe@iscas.ac.cn>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link:
https://patch.msgid.link/2670567.Lt9SDvczpP@rjwysocki.net
drivers/acpi/acpica/utcache.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/acpica/utcache.c
b/drivers/acpi/acpica/utcache.c
index 85a85f7cf750abafd50e83ca6a0d7a9724ab3101..046e6ba127d4cb0c5da76a9c0376e974e48b9602 100644
(file)
--- a/
drivers/acpi/acpica/utcache.c
+++ b/
drivers/acpi/acpica/utcache.c
@@
-251,9
+251,9
@@
void *acpi_os_acquire_object(struct acpi_memory_list *cache)
} else {
/* The cache is empty, create a new object */
+#ifdef ACPI_DBG_TRACK_ALLOCATIONS
ACPI_MEM_TRACKING(cache->total_allocated++);
-#ifdef ACPI_DBG_TRACK_ALLOCATIONS
if ((cache->total_allocated - cache->total_freed) >
cache->max_occupied) {
cache->max_occupied =