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

[Xen-changelog] [xen-unstable] x86: disable PIT irq after S3 resume



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1207901171 -3600
# Node ID ca2be96f0cc45f817b7e6c7a157e0416c66338ba
# Parent  09903e0e75287a1920733e4df1f51e7b9a7b9c5d
x86: disable PIT irq after S3 resume

Signed-off-by: Yu Ke <ke.yu@xxxxxxxxx>
---
 xen/arch/x86/time.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff -r 09903e0e7528 -r ca2be96f0cc4 xen/arch/x86/time.c
--- a/xen/arch/x86/time.c       Thu Apr 10 16:17:28 2008 +0100
+++ b/xen/arch/x86/time.c       Fri Apr 11 09:06:11 2008 +0100
@@ -990,7 +990,7 @@ void __init early_time_init(void)
     setup_irq(0, &irq0);
 }
 
-static int __init late_time_init(void)
+static int __init disable_pit_irq(void)
 {
     if ( !using_pit && cpu_has_apic )
     {
@@ -1001,7 +1001,7 @@ static int __init late_time_init(void)
     }
     return 0;
 }
-__initcall(late_time_init);
+__initcall(disable_pit_irq);
 
 void send_timer_event(struct vcpu *v)
 {
@@ -1035,6 +1035,8 @@ int time_resume(void)
 int time_resume(void)
 {
     u64 tmp = init_pit_and_calibrate_tsc();
+
+    disable_pit_irq();
 
     set_time_scale(&this_cpu(cpu_time).tsc_scale, tmp);
 

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


 


Rackspace

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