diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2017-06-26 12:39:30 -0400 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2017-07-23 02:09:24 -0400 |
commit | 0e4d394fe50308f69eb061eb89de78279df1e9dc (patch) | |
tree | 1ded5a4769dd411d8da8ac61e0388bcb956d4e6b | |
parent | 4b162c530d9c101381500e586fedb1340595a6ff (diff) |
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 <vkuznets@redhat.com>
Acked-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
-rw-r--r-- | arch/x86/xen/time.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c index a1895a8e85c1..1ecb05db3632 100644 --- a/arch/x86/xen/time.c +++ b/arch/x86/xen/time.c | |||
@@ -309,7 +309,6 @@ static irqreturn_t xen_timer_interrupt(int irq, void *dev_id) | |||
309 | void xen_teardown_timer(int cpu) | 309 | void xen_teardown_timer(int cpu) |
310 | { | 310 | { |
311 | struct clock_event_device *evt; | 311 | struct clock_event_device *evt; |
312 | BUG_ON(cpu == 0); | ||
313 | evt = &per_cpu(xen_clock_events, cpu).evt; | 312 | evt = &per_cpu(xen_clock_events, cpu).evt; |
314 | 313 | ||
315 | if (evt->irq >= 0) { | 314 | if (evt->irq >= 0) { |