[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 02/11] xen: remove BUG_ON from xen_teardown_timer


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Thu, 28 Jul 2011 15:23:02 +0200
  • Delivery-date: Thu, 28 Jul 2011 06:28:53 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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 <olaf@xxxxxxxxx>

---
 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);
 }


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.