]> Gentwo Git Trees - linux/.git/commit
x86/amd_nb: Restrict init function to AMD-based systems
authorYazen Ghannam <yazen.ghannam@amd.com>
Fri, 6 Dec 2024 16:11:55 +0000 (16:11 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 8 Jan 2025 09:46:57 +0000 (10:46 +0100)
commitbee9e840609cc67d0a7d82f22a2130fb7a0a766d
tree3d72b4e23edf1a03d5b3e37efb04786991108da2
parent6a5abeea9c72e1d2c538622b4cf66c80cc816fd3
x86/amd_nb: Restrict init function to AMD-based systems

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
arch/x86/kernel/amd_nb.c