Skip to content

Commit 0e4d394

Browse files
vittyvkjgross1
authored andcommitted
xen/x86: Don't BUG on CPU0 offlining
CONFIG_BOOTPARAM_HOTPLUG_CPU0 allows to offline CPU0 but Xen HVM guests BUG() in xen_teardown_timer(). Remove the BUG_ON(), this is probably a leftover from ancient times when CPU0 hotplug was impossible, it works just fine for HVM. Signed-off-by: Vitaly Kuznetsov <[email protected]> Acked-by: Juergen Gross <[email protected]> Signed-off-by: Juergen Gross <[email protected]>
1 parent 4b162c5 commit 0e4d394

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/x86/xen/time.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ static irqreturn_t xen_timer_interrupt(int irq, void *dev_id)
309309
void xen_teardown_timer(int cpu)
310310
{
311311
struct clock_event_device *evt;
312-
BUG_ON(cpu == 0);
313312
evt = &per_cpu(xen_clock_events, cpu).evt;
314313

315314
if (evt->irq >= 0) {

0 commit comments

Comments
 (0)