x86/vPMU: invoke <vendor>_vpmu_initialise() through a hook as well
authorJan Beulich <jbeulich@suse.com>
Fri, 3 Dec 2021 10:21:14 +0000 (11:21 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 3 Dec 2021 10:21:14 +0000 (11:21 +0100)
commit8c20aca6751bf40f2d385f79d702813eb6a3cb27
tree883bc6e00984499573fc7f84d593ee6fba7b5869
parentd95cf9d6057cf3c65192fbc0bf6d334602ecb34b
x86/vPMU: invoke <vendor>_vpmu_initialise() through a hook as well

I see little point in having an open-coded switch() statement to achieve
the same; like other vendor-specific operations the function can be
supplied in the respective ops structure instances.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/cpu/vpmu.c
xen/arch/x86/cpu/vpmu_amd.c
xen/arch/x86/cpu/vpmu_intel.c
xen/include/asm-x86/vpmu.h