diff options
| author | 2025-11-06 01:54:45 +0000 | |
|---|---|---|
| committer | 2025-11-06 12:51:33 +0100 | |
| commit | 6a857969150908ff1deebb8b368a872281d103bd (patch) | |
| tree | bd97f69ca935e5bb60e5c6e9a43f77e47321c496 /tools/arch/alpha/include/uapi/git:/ssh:/git@git.zx2c4.com | |
| parent | EDAC/amd64: Generate ctl_name string at runtime (diff) | |
EDAC/amd64: Remove NUM_CONTROLLERS macro
Currently, the NUM_CONTROLLERS macro is used to limit the amount of memory
controllers (UMCs) available per node. The number of UMCs available per node,
however, is already cached by the max_mcs variable of struct amd64_pvt.
Allocate the relevant data structures dynamically using the variable instead
of static allocation through the macro.
The max_mcs variable is used for legacy systems too. These systems have a max
of 2 controllers. Since the default value of max_mcs, set in per_family_init(),
is 2, these legacy systems are also covered.
Signed-off-by: Avadhut Naik <avadhut.naik@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20251106015727.1987246-1-avadhut.naik@amd.com
Diffstat (limited to 'tools/arch/alpha/include/uapi/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
