platform/cpufreq: add public defines for CPUFREQ_SHARED_TYPE_
authorRoger Pau Monné <roger.pau@citrix.com>
Thu, 7 Apr 2022 10:25:42 +0000 (12:25 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 7 Apr 2022 10:25:42 +0000 (12:25 +0200)
commit72919c762fccfc1467eec7edb0737b6d548b00a7
tree499348ce9c5b2ac4f2210be8aad2d904bc93d3d4
parent609b8b0153e9bdb4e15be88a8911c6360e13e268
platform/cpufreq: add public defines for CPUFREQ_SHARED_TYPE_

The values set in the shared_type field of xen_processor_performance
have so far relied on Xen and Linux having the same
CPUFREQ_SHARED_TYPE_ defines, as those have never been part of the
public interface.

Formalize by adding the defines for the allowed values in the public
header, while renaming them to use the XEN_CPUPERF_SHARED_TYPE_ prefix
for clarity.

Set the Xen internal defines for CPUFREQ_SHARED_TYPE_ using the newly
introduced XEN_CPUPERF_SHARED_TYPE_ public defines in order to avoid
unnecessary code churn.  While there also drop
CPUFREQ_SHARED_TYPE_NONE as it's unused.

Fixes: 2fa7bee0a0 ('Get ACPI Px from dom0 and choose Px controller')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/include/acpi/cpufreq/cpufreq.h
xen/include/public/platform.h