ia64/xen-unstable

changeset 14088:d7fe2318fc5f

linux: Fix current_vcpu_info for UP case

Under !CONFIG_SMP, smp.h is not always included and hence
smp_processor_id() not always visible.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author kfraser@localhost.localdomain
date Fri Feb 23 10:43:00 2007 +0000 (2007-02-23)
parents 6510cb03aae1
children 38fb6c392dec
files linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/hypervisor.h
line diff
     1.1 --- a/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/hypervisor.h	Fri Feb 23 10:38:33 2007 +0000
     1.2 +++ b/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/hypervisor.h	Fri Feb 23 10:43:00 2007 +0000
     1.3 @@ -57,7 +57,11 @@
     1.4  extern shared_info_t *HYPERVISOR_shared_info;
     1.5  
     1.6  #define vcpu_info(cpu) (HYPERVISOR_shared_info->vcpu_info + (cpu))
     1.7 +#ifdef CONFIG_SMP
     1.8  #define current_vcpu_info() vcpu_info(smp_processor_id())
     1.9 +#else
    1.10 +#define current_vcpu_info() vcpu_info(0)
    1.11 +#endif
    1.12  
    1.13  #ifdef CONFIG_X86_32
    1.14  extern unsigned long hypervisor_virt_start;