Displaying 2 results from an estimated 2 matches for "cpu_bc_channel".
2009 Apr 30
0
[PATCH] cpuidle: Fix for timer_deadline==0 case
...re < 0\n");
-        return -ETIME;
+        printk(KERN_DEBUG "reprogram: expire <= 0\n");
+        return 0;
     }
 
     delta = expire - now;
@@ -625,6 +625,9 @@ void hpet_broadcast_enter(void)
     int cpu = smp_processor_id();
     struct hpet_event_channel *ch = per_cpu(cpu_bc_channel, cpu);
 
+    if ( this_cpu(timer_deadline) == 0 )
+        return;
+
     if ( !ch )
         ch = hpet_get_channel(cpu);
     BUG_ON( !ch );
Jimmy
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
2009 Jul 15
0
[PATCH] rename for_each_cpu() to for_each_possible_cpu()
...3:54:05.000000000 +0200
+++ 2009-07-10/xen/arch/x86/hpet.c	2009-07-15 09:58:49.000000000 +0200
@@ -590,7 +590,7 @@ void hpet_broadcast_init(void)
     legacy_hpet_event.flags = 0;
     spin_lock_init(&legacy_hpet_event.lock);
 
-    for_each_cpu(i)
+    for_each_possible_cpu(i)
         per_cpu(cpu_bc_channel, i) = &legacy_hpet_event;
 
     if ( !force_hpet_broadcast )
--- 2009-07-10.orig/xen/arch/x86/nmi.c	2009-06-19 11:11:23.000000000 +0200
+++ 2009-07-10/xen/arch/x86/nmi.c	2009-07-15 09:58:16.000000000 +0200
@@ -460,7 +460,7 @@ static void do_nmi_stats(unsigned char k
     struct vcpu *v;...