]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86/amd: hfi: Remove unused cpumask from cpuinfo struct
authorKuan-Wei Chiu <visitorckw@gmail.com>
Sat, 11 Oct 2025 06:38:36 +0000 (14:38 +0800)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 15 Oct 2025 08:38:25 +0000 (11:38 +0300)
commit32647324c77012b7aed7ef48752909510d3c7ec7
treef15c956a7dad24d2f9a81b332e766bbc156bc935
parent3a8660878839faadb4f1a6dd72c3179c1df56787
platform/x86/amd: hfi: Remove unused cpumask from cpuinfo struct

The cpus field within the struct amd_hfi_cpuinfo was allocated and set
in the amd_hfi_online() CPU hotplug callback, and subsequently freed in
the amd_hfi_offline() callback.

However, after being initialized, this cpumask was never read or used
for any purpose within the driver. It represents dead code that serves
no functional role.

This change has no impact on the driver's functionality as the removed
code was entirely superfluous.

Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Link: https://patch.msgid.link/20251011063837.2318535-2-visitorckw@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/amd/hfi/hfi.c