From: Vitaly Kuznetsov Date: Mon, 26 Jun 2017 16:39:30 +0000 (+0200) Subject: xen/x86: Don't BUG on CPU0 offlining X-Git-Tag: MMI-PSA29.97-13-9~4985^2~11 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0e4d394fe50308f69eb061eb89de78279df1e9dc;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Acked-by: Juergen Gross Signed-off-by: Juergen Gross --- 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) void xen_teardown_timer(int cpu) { struct clock_event_device *evt; - BUG_ON(cpu == 0); evt = &per_cpu(xen_clock_events, cpu).evt; if (evt->irq >= 0) {