[PATCH 00/11] x86/cpu: Centralize and standardize CPUID leaf naming

Dave Hansen posted 11 patches 3 weeks, 4 days ago
There is a newer version of this series
[PATCH 00/11] x86/cpu: Centralize and standardize CPUID leaf naming
Posted by Dave Hansen 3 weeks, 4 days ago
I noticed that the MWAIT code was rather haphazard in how it deals
with CPUID leaf levels.  As a result, there were a ton of unnecessary
checks for ->cpuid_level.  It is truly the worst offender because
there's arch/x86, intel_idle and ACPI that want to poke at it.

Move several of the leaf definitions to one place (cpuid.h).  Use
the definitions to get rid of magic numbers.  Simplify the code
when the CPUID feature level dependencies can be used.  Lastly,
change all the leaf names to be consistent.

This does not get *ALL* the leaves.  The topology and cache ones
are left along for now, but they can also be converted over.