diff options
| author | Alejandro Lucero <alucerop@amd.com> | 2026-07-16 19:11:14 +0100 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-09-18 20:44:03 +0200 |
| commit | b1c75a77d494298b8dedf46062f2072239bbc33b (patch) | |
| tree | 9a4e92774d81d8a72e907cbfc7d04134fd965d75 /include/linux/array_size.h | |
| parent | 047c834d939df75386cfc0603c7ddeaa23a349a4 (diff) | |
ACPI: HMAT: preserve hmat_adist_nb notifier block
Remove __meminitdata from hmat_adist_nb declaration preserving it even
when CONFIG_MEMORY_HOTPLUG is not set. Otherwise further notifier
registrations using register_mt_adistance_algorithm() will find a
notifier chain likely corrupted.
This is the case when cxl_region_probe() calls
register_mt_adistance_algorithm() what can happen when CXL regions
are dynamically created at any time from Type3 device(s) or when a Type2
device is initialized at its driver probe.
Fixes: 3718c02dbd4c ("acpi, hmat: calculate abstract distance with HMAT")
Signed-off-by: Alejandro Lucero <alucerop@amd.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
[ rjw: Subject tweak ]
Link: https://patch.msgid.link/20260716181114.35962-2-alejandro.lucero-palau@amd.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/array_size.h')
0 files changed, 0 insertions, 0 deletions
