ia64/xen-unstable

changeset 10097:5e1c99e5d194

Rename init_IRQ to xen_init_IRQ, so that non-x86 can use their own init_IRQ.
Signed-off-by Kevin Tian <Kevin.tian@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu May 18 10:46:07 2006 +0100 (2006-05-18)
parents 25dbb1819633
children 48c0f5489d44
files linux-2.6-xen-sparse/drivers/xen/core/evtchn.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/core/evtchn.c	Thu May 18 10:43:05 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/core/evtchn.c	Thu May 18 10:46:07 2006 +0100
     1.3 @@ -41,10 +41,10 @@
     1.4  #include <asm/system.h>
     1.5  #include <asm/ptrace.h>
     1.6  #include <asm/synch_bitops.h>
     1.7 +#include <xen/evtchn.h>
     1.8  #include <xen/interface/event_channel.h>
     1.9  #include <xen/interface/physdev.h>
    1.10  #include <asm/hypervisor.h>
    1.11 -#include <xen/evtchn.h>
    1.12  #include <linux/mc146818rtc.h> /* RTC_IRQ */
    1.13  
    1.14  /*
    1.15 @@ -163,6 +163,12 @@ static inline unsigned int cpu_from_evtc
    1.16  /* Upcall to generic IRQ layer. */
    1.17  #ifdef CONFIG_X86
    1.18  extern fastcall unsigned int do_IRQ(struct pt_regs *regs);
    1.19 +void __init xen_init_IRQ(void);
    1.20 +void __init init_IRQ(void)
    1.21 +{
    1.22 +	irq_ctx_init(0);
    1.23 +	xen_init_IRQ();
    1.24 +}
    1.25  #if defined (__i386__)
    1.26  static inline void exit_idle(void) {}
    1.27  #define IRQ_REG orig_eax
    1.28 @@ -804,13 +810,11 @@ void irq_resume(void)
    1.29  	}
    1.30  }
    1.31  
    1.32 -void __init init_IRQ(void)
    1.33 +void __init xen_init_IRQ(void)
    1.34  {
    1.35  	int i;
    1.36  	int cpu;
    1.37  
    1.38 -	irq_ctx_init(0);
    1.39 -
    1.40  	spin_lock_init(&irq_mapping_update_lock);
    1.41  
    1.42  	init_evtchn_cpu_bindings();