| .. | .. |
|---|
| 88 | 88 | per_cpu(xen_callfunc_irq, cpu).irq = rc; |
|---|
| 89 | 89 | per_cpu(xen_callfunc_irq, cpu).name = callfunc_name; |
|---|
| 90 | 90 | |
|---|
| 91 | | - debug_name = kasprintf(GFP_KERNEL, "debug%d", cpu); |
|---|
| 92 | | - rc = bind_virq_to_irqhandler(VIRQ_DEBUG, cpu, xen_debug_interrupt, |
|---|
| 93 | | - IRQF_PERCPU | IRQF_NOBALANCING, |
|---|
| 94 | | - debug_name, NULL); |
|---|
| 95 | | - if (rc < 0) |
|---|
| 96 | | - goto fail; |
|---|
| 97 | | - per_cpu(xen_debug_irq, cpu).irq = rc; |
|---|
| 98 | | - per_cpu(xen_debug_irq, cpu).name = debug_name; |
|---|
| 91 | + if (!xen_fifo_events) { |
|---|
| 92 | + debug_name = kasprintf(GFP_KERNEL, "debug%d", cpu); |
|---|
| 93 | + rc = bind_virq_to_irqhandler(VIRQ_DEBUG, cpu, |
|---|
| 94 | + xen_debug_interrupt, |
|---|
| 95 | + IRQF_PERCPU | IRQF_NOBALANCING, |
|---|
| 96 | + debug_name, NULL); |
|---|
| 97 | + if (rc < 0) |
|---|
| 98 | + goto fail; |
|---|
| 99 | + per_cpu(xen_debug_irq, cpu).irq = rc; |
|---|
| 100 | + per_cpu(xen_debug_irq, cpu).name = debug_name; |
|---|
| 101 | + } |
|---|
| 99 | 102 | |
|---|
| 100 | 103 | callfunc_name = kasprintf(GFP_KERNEL, "callfuncsingle%d", cpu); |
|---|
| 101 | 104 | rc = bind_ipi_to_irqhandler(XEN_CALL_FUNCTION_SINGLE_VECTOR, |
|---|
| .. | .. |
|---|
| 132 | 135 | if (xen_vcpu_nr(cpu) < MAX_VIRT_CPUS) |
|---|
| 133 | 136 | continue; |
|---|
| 134 | 137 | |
|---|
| 135 | | - rc = cpu_down(cpu); |
|---|
| 138 | + rc = remove_cpu(cpu); |
|---|
| 136 | 139 | |
|---|
| 137 | 140 | if (rc == 0) { |
|---|
| 138 | 141 | /* |
|---|