x86/amd_nb: Restrict init function to AMD-based systems

[ Upstream commit bee9e84060 ]

The code implicitly operates on AMD-based systems by matching on PCI
IDs. However, the use of these IDs is going away.

Add an explicit CPU vendor check instead of relying on PCI IDs.

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20241206161210.163701-3-yazen.ghannam@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Yazen Ghannam 2024-12-06 16:11:55 +00:00 • committed by Greg Kroah-Hartman
commit 99795e62e7