diff options
author | Yazen Ghannam <yazen.ghannam@amd.com> | 2025-06-24 14:16:03 +0000 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2025-09-05 12:42:21 +0200 |
commit | c4bac5c640e3782bf30c07c4d82042d0202fe224 (patch) | |
tree | 85489aa963598ff99f96e9aa8c56785eafa1caff /scripts/gdb/linux/timerlist.py | |
parent | b249288abde5190bb113ea5acef8af4ceac4957c (diff) |
x86/mce/amd: Put list_head in threshold_bank
The threshold_bank structure is a container for one or more threshold_block
structures. Currently, the container has a single pointer to the 'first'
threshold_block structure which then has a linked list of the remaining
threshold_block structures.
This results in an extra level of indirection where the 'first' block is
checked before iterating over the remaining blocks.
Remove the indirection by including the head of the block list in the
threshold_bank structure which already acts as a container for all the bank's
thresholding blocks.
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Tested-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/20250624-wip-mca-updates-v4-8-236dd74f645f@amd.com
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions