ia64/xen-unstable

changeset 11989:5d2f91f9b2f0

PV-on-HVM: Define system_state as 1 (SYSTEM_RUNNING) on kernels prior
to 2.6.7. These kernels did not export the system_state variable to
modules.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
author Ian Campbell <ian.campbell@xensource.com>
date Wed Oct 25 13:58:30 2006 +0100 (2006-10-25)
parents f4b878188b5d
children 4dcf172e699e
files unmodified_drivers/linux-2.6/platform-pci/platform-compat.c
line diff
     1.1 --- a/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c	Wed Oct 25 13:58:30 2006 +0100
     1.2 +++ b/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c	Wed Oct 25 13:58:30 2006 +0100
     1.3 @@ -1,4 +1,11 @@
     1.4  #include <linux/config.h>
     1.5  #include <linux/version.h>
     1.6  
     1.7 +#include <linux/module.h>
     1.8 +
     1.9  #include <xen/platform-compat.h>
    1.10 +
    1.11 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,7)
    1.12 +static int system_state = 1;
    1.13 +EXPORT_SYMBOL(system_state);
    1.14 +#endif