ia64/linux-2.6.18-xen.hg

changeset 727:69694615aebb

linux, S3: dom0 doesn't need save ioapic state

Dom0 doesn't need to save/restore ioapic state across S3
suspend/resume, as Xen already does it. The more important
is to avoid warnings on some platforms which may have
uninitialized RTEs to be weird value (like smi mode) but
masked. When dom0 saves those entries and then write back
later, it's easy to trigger Xen's sanity check from
ioapic_guest_write.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Nov 18 16:04:04 2008 +0000 (2008-11-18)
parents d31b6ccf10e4
children 69fc220cd737
files arch/i386/kernel/io_apic-xen.c arch/x86_64/kernel/io_apic-xen.c
line diff
     1.1 --- a/arch/i386/kernel/io_apic-xen.c	Fri Nov 07 17:04:20 2008 +0000
     1.2 +++ b/arch/i386/kernel/io_apic-xen.c	Tue Nov 18 16:04:04 2008 +0000
     1.3 @@ -2570,8 +2570,10 @@ static int ioapic_resume(struct sys_devi
     1.4  
     1.5  static struct sysdev_class ioapic_sysdev_class = {
     1.6  	set_kset_name("ioapic"),
     1.7 +#ifndef CONFIG_XEN
     1.8  	.suspend = ioapic_suspend,
     1.9  	.resume = ioapic_resume,
    1.10 +#endif
    1.11  };
    1.12  
    1.13  static int __init ioapic_init_sysfs(void)
     2.1 --- a/arch/x86_64/kernel/io_apic-xen.c	Fri Nov 07 17:04:20 2008 +0000
     2.2 +++ b/arch/x86_64/kernel/io_apic-xen.c	Tue Nov 18 16:04:04 2008 +0000
     2.3 @@ -2107,8 +2107,10 @@ static int ioapic_resume(struct sys_devi
     2.4  
     2.5  static struct sysdev_class ioapic_sysdev_class = {
     2.6  	set_kset_name("ioapic"),
     2.7 +#ifndef CONFIG_XEN
     2.8  	.suspend = ioapic_suspend,
     2.9  	.resume = ioapic_resume,
    2.10 +#endif
    2.11  };
    2.12  
    2.13  static int __init ioapic_init_sysfs(void)