Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Zhe Qiao and committed by
Rafael J. Wysocki
5f3cf23f d46825d2

+1 -1
+1 -1
drivers/acpi/acpica/utcache.c
··· 251 251 } else { 252 252 /* The cache is empty, create a new object */ 253 253 254 + #ifdef ACPI_DBG_TRACK_ALLOCATIONS 254 255 ACPI_MEM_TRACKING(cache->total_allocated++); 255 256 256 - #ifdef ACPI_DBG_TRACK_ALLOCATIONS 257 257 if ((cache->total_allocated - cache->total_freed) > 258 258 cache->max_occupied) { 259 259 cache->max_occupied =