[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] RE: [Xen-devel] [RFC] Remove the x86 Periodic 100HZ PIT TimerInterrupt
Keir Fraser wrote: > On 10/4/08 15:11, "Yu, Ke" <ke.yu@xxxxxxxxx> wrote: > >> One glance showes calling late_time_init() in time_resume() should >> work. I will test this and send out the patch later. > > Looks like it would work. While you're at it rename late_time_init() > to maybe_disable_pit_irq() or something similarly informative. > > -- Keir The attached is the patch for this. It has been tested against changeset 17433. Wall clock time works fine after host S3 suspend/resume. diff -r 8d750b7acfa3 -r c05b191c8e2a xen/arch/x86/time.c --- a/xen/arch/x86/time.c Thu Apr 10 11:11:25 2008 +0100 +++ b/xen/arch/x86/time.c Fri Apr 11 15:18:45 2008 +0800 @@ -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); Best Regards Ke Attachment:
disable_pit_irq_s3.patch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |