Re: [PATCH v2 01/29] x86: treewide: Introduce x86_vendor_amd_or_hygon()

From: Borislav Petkov
Date: Mon Mar 17 2025 - 13:34:54 EST


On Mon, Mar 17, 2025 at 05:47:17PM +0100, Ahmed S. Darwish wrote:
> The pattern to check if an x86 vendor is AMD or HYGON (or not both) is
> pretty common. Introduce x86_vendor_amd_or_hygon() at <asm/processor.h>

So if we need to check "intel too", we do

x86_vendor_amd_or_hygon_or_intel?

Nah, this is silly.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette