aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/enlighten.c
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2015-10-22 12:20:46 -0400
committerDavid Vrabel <david.vrabel@citrix.com>2015-10-23 09:20:47 -0400
commita314e3eb845389b8f68130c79a63832229dea87b (patch)
tree94f59575eb25d7292e54f4fa31ad9627e393f853 /arch/x86/xen/enlighten.c
parent89bf4b4e4a8d9ab219cd03aada24e782cf0ac359 (diff)
xen/arm: Enable cpu_hotplug.c
Build cpu_hotplug for ARM and ARM64 guests. Rename arch_(un)register_cpu to xen_(un)register_cpu and provide an empty implementation on ARM and ARM64. On x86 just call arch_(un)register_cpu as we are already doing. Initialize cpu_hotplug on ARM. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Reviewed-by: Julien Grall <julien.grall@citrix.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'arch/x86/xen/enlighten.c')
-rw-r--r--arch/x86/xen/enlighten.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 993b7a71386d..5774800ff583 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -75,6 +75,7 @@
75#include <asm/mwait.h> 75#include <asm/mwait.h>
76#include <asm/pci_x86.h> 76#include <asm/pci_x86.h>
77#include <asm/pat.h> 77#include <asm/pat.h>
78#include <asm/cpu.h>
78 79
79#ifdef CONFIG_ACPI 80#ifdef CONFIG_ACPI
80#include <linux/acpi.h> 81#include <linux/acpi.h>
@@ -1899,3 +1900,17 @@ const struct hypervisor_x86 x86_hyper_xen = {
1899 .set_cpu_features = xen_set_cpu_features, 1900 .set_cpu_features = xen_set_cpu_features,
1900}; 1901};
1901EXPORT_SYMBOL(x86_hyper_xen); 1902EXPORT_SYMBOL(x86_hyper_xen);
1903
1904#ifdef CONFIG_HOTPLUG_CPU
1905void xen_arch_register_cpu(int num)
1906{
1907 arch_register_cpu(num);
1908}
1909EXPORT_SYMBOL(xen_arch_register_cpu);
1910
1911void xen_arch_unregister_cpu(int num)
1912{
1913 arch_unregister_cpu(num);
1914}
1915EXPORT_SYMBOL(xen_arch_unregister_cpu);
1916#endif