mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
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: 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
This commit is contained in:
parent
d46825d2e5
commit
5f3cf23f72
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user