x86/cpufreq: Drop opencoded CPUID handling from powernow
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 12 Nov 2021 16:00:13 +0000 (16:00 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 29 Nov 2021 13:53:05 +0000 (13:53 +0000)
commit5d9974916bca25ce2d00b888f54b89e9eabdcc92
treec3ef83205492fa67526e78fb3e4d079bed080ee8
parent4dd16c44152f57f2f96d32e9a06fb7e259cde31b
x86/cpufreq: Drop opencoded CPUID handling from powernow

Xen already collects CPUID.0x80000007.edx by default, meaning that we can
refer to per-cpu data directly.  This also avoids the need IPI the onlining
CPU to identify whether Core Performance Boost is available.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
tools/misc/xen-cpuid.c
xen/arch/x86/acpi/cpufreq/powernow.c
xen/include/asm-x86/cpufeature.h
xen/include/public/arch-x86/cpufeatureset.h