x86/xen: split xen_smp_intr_init()/xen_smp_intr_free()
xen_smp_intr_init() and xen_smp_intr_free() have PV-specific code and as a praparatory change to splitting smp.c we need to split these fucntions. Create xen_smp_intr_init_pv()/xen_smp_intr_free_pv(). Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Reviewed-by: Juergen Gross <jgross@suse.com> Signed-off-by: Juergen Gross <jgross@suse.com>
This commit is contained in:

committed by
Juergen Gross

parent
e1dab14cf6
commit
04e95761fa
@@ -1477,12 +1477,21 @@ static int xen_cpu_up_prepare_pv(unsigned int cpu)
|
||||
cpu, rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
rc = xen_smp_intr_init_pv(cpu);
|
||||
if (rc) {
|
||||
WARN(1, "xen_smp_intr_init_pv() for CPU %d failed: %d\n",
|
||||
cpu, rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int xen_cpu_dead_pv(unsigned int cpu)
|
||||
{
|
||||
xen_smp_intr_free(cpu);
|
||||
xen_smp_intr_free_pv(cpu);
|
||||
|
||||
xen_teardown_timer(cpu);
|
||||
|
||||
|
Reference in New Issue
Block a user