From: Olaf Hering Subject: [PATCH 02/11] xen: remove BUG_ON from xen_teardown_timer Date: Thu, 28 Jul 2011 15:23:02 +0200 Message-ID: <20110728132300.885094536@aepfle.de> References: <20110728132300.248098023@aepfle.de> Return-path: Content-Disposition: inline; filename=xen.xen_teardown_timer.remove_bugon.patch List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org cpu #0 has no "online" entry in /sys/devices/system/cpu/cpu0/, so setting this cpu to offline can not happen by accident. Signed-off-by: Olaf Hering --- arch/x86/xen/time.c | 1 - 1 file changed, 1 deletion(-) Index: linux-3.0/arch/x86/xen/time.c =================================================================== --- linux-3.0.orig/arch/x86/xen/time.c +++ linux-3.0/arch/x86/xen/time.c @@ -408,7 +408,6 @@ void xen_setup_timer(int cpu) void xen_teardown_timer(int cpu) { struct clock_event_device *evt; - BUG_ON(cpu == 0); evt = &per_cpu(xen_clock_events, cpu); unbind_from_irqhandler(evt->irq, NULL); }