Re: [PATCH] x86: Prefer MWAIT over HALT on AMD processors

From: Peter Zijlstra
Date: Tue Apr 05 2022 - 18:32:02 EST


On Tue, Apr 05, 2022 at 06:30:21PM +0530, Wyes Karny wrote:
> +static inline bool early_mwait_supported(const struct cpuinfo_x86 *c)
> +{
> + if (c->x86_vendor == X86_VENDOR_INTEL)
> + return true;
> +
> + if (c->x86_vendor == X86_VENDOR_AMD && cpu_has(c, X86_FEATURE_ZEN))

What about Hygon? For some reason you guys don't co-ordinate and we end
up getting endless 'make-same' patches, sometimes separated by years :/

> + return true;
> +
> + return false;
> +}