ia64/xen-unstable

changeset 5291:b51e4b4608f9

bitkeeper revision 1.1653 (429f7931iJ8kgS9qBlBbtyY9irorQA)

Many files:
More include cleanups towards "include where it's used".
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Jun 02 21:25:05 2005 +0000 (2005-06-02)
parents 0c246cd111e1
children 8651a99cdc09
files xen/arch/x86/cpu/common.c xen/arch/x86/genapic/bigsmp.c xen/arch/x86/genapic/default.c xen/arch/x86/genapic/es7000.c xen/arch/x86/genapic/summit.c xen/arch/x86/irq.c xen/arch/x86/microcode.c xen/arch/x86/nmi.c xen/arch/x86/physdev.c xen/arch/x86/smp.c xen/arch/x86/smpboot.c xen/arch/x86/vmx_io.c xen/arch/x86/vmx_vmcs.c xen/arch/x86/x86_32/domain_page.c xen/arch/x86/x86_32/mm.c xen/arch/x86/x86_32/traps.c xen/arch/x86/x86_64/mm.c xen/arch/x86/x86_64/traps.c xen/common/dom0_ops.c xen/common/dom_mem_ops.c xen/common/event_channel.c xen/common/multicall.c xen/drivers/char/console.c xen/include/asm-x86/shadow.h xen/include/asm-x86/smp.h xen/include/xen/softirq.h
line diff
     1.1 --- a/xen/arch/x86/cpu/common.c	Thu Jun 02 20:50:01 2005 +0000
     1.2 +++ b/xen/arch/x86/cpu/common.c	Thu Jun 02 21:25:05 2005 +0000
     1.3 @@ -3,6 +3,7 @@
     1.4  #include <xen/string.h>
     1.5  #include <xen/delay.h>
     1.6  #include <xen/smp.h>
     1.7 +#include <asm/current.h>
     1.8  #include <asm/processor.h>
     1.9  #include <asm/i387.h>
    1.10  #include <asm/msr.h>
     2.1 --- a/xen/arch/x86/genapic/bigsmp.c	Thu Jun 02 20:50:01 2005 +0000
     2.2 +++ b/xen/arch/x86/genapic/bigsmp.c	Thu Jun 02 21:25:05 2005 +0000
     2.3 @@ -5,6 +5,7 @@
     2.4  #define APIC_DEFINITION 1
     2.5  #include <xen/config.h>
     2.6  #include <xen/cpumask.h>
     2.7 +#include <asm/current.h>
     2.8  #include <asm/mpspec.h>
     2.9  #include <asm/genapic.h>
    2.10  #include <asm/fixmap.h>
     3.1 --- a/xen/arch/x86/genapic/default.c	Thu Jun 02 20:50:01 2005 +0000
     3.2 +++ b/xen/arch/x86/genapic/default.c	Thu Jun 02 21:25:05 2005 +0000
     3.3 @@ -4,6 +4,7 @@
     3.4  #define APIC_DEFINITION 1
     3.5  #include <xen/config.h>
     3.6  #include <xen/cpumask.h>
     3.7 +#include <asm/current.h>
     3.8  #include <asm/mpspec.h>
     3.9  #include <asm/mach-default/mach_apicdef.h>
    3.10  #include <asm/genapic.h>
     4.1 --- a/xen/arch/x86/genapic/es7000.c	Thu Jun 02 20:50:01 2005 +0000
     4.2 +++ b/xen/arch/x86/genapic/es7000.c	Thu Jun 02 21:25:05 2005 +0000
     4.3 @@ -4,6 +4,7 @@
     4.4  #define APIC_DEFINITION 1
     4.5  #include <xen/config.h>
     4.6  #include <xen/cpumask.h>
     4.7 +#include <asm/current.h>
     4.8  #include <asm/mpspec.h>
     4.9  #include <asm/genapic.h>
    4.10  #include <asm/fixmap.h>
     5.1 --- a/xen/arch/x86/genapic/summit.c	Thu Jun 02 20:50:01 2005 +0000
     5.2 +++ b/xen/arch/x86/genapic/summit.c	Thu Jun 02 21:25:05 2005 +0000
     5.3 @@ -4,6 +4,7 @@
     5.4  #define APIC_DEFINITION 1
     5.5  #include <xen/config.h>
     5.6  #include <xen/cpumask.h>
     5.7 +#include <asm/current.h>
     5.8  #include <asm/mpspec.h>
     5.9  #include <asm/genapic.h>
    5.10  #include <asm/fixmap.h>
     6.1 --- a/xen/arch/x86/irq.c	Thu Jun 02 20:50:01 2005 +0000
     6.2 +++ b/xen/arch/x86/irq.c	Thu Jun 02 21:25:05 2005 +0000
     6.3 @@ -11,6 +11,7 @@
     6.4  #include <xen/irq.h>
     6.5  #include <xen/perfc.h>
     6.6  #include <xen/sched.h>
     6.7 +#include <asm/current.h>
     6.8  #include <asm/smpboot.h>
     6.9  
    6.10  irq_desc_t irq_desc[NR_IRQS];
     7.1 --- a/xen/arch/x86/microcode.c	Thu Jun 02 20:50:01 2005 +0000
     7.2 +++ b/xen/arch/x86/microcode.c	Thu Jun 02 21:25:05 2005 +0000
     7.3 @@ -77,6 +77,7 @@
     7.4  #include <xen/smp.h>
     7.5  #include <xen/spinlock.h>
     7.6  
     7.7 +#include <asm/current.h>
     7.8  #include <asm/msr.h>
     7.9  #include <asm/uaccess.h>
    7.10  #include <asm/processor.h>
     8.1 --- a/xen/arch/x86/nmi.c	Thu Jun 02 20:50:01 2005 +0000
     8.2 +++ b/xen/arch/x86/nmi.c	Thu Jun 02 21:25:05 2005 +0000
     8.3 @@ -22,6 +22,7 @@
     8.4  #include <xen/sched.h>
     8.5  #include <xen/console.h>
     8.6  #include <xen/smp.h>
     8.7 +#include <asm/current.h>
     8.8  #include <asm/mc146818rtc.h>
     8.9  #include <asm/msr.h>
    8.10  #include <asm/mpspec.h>
     9.1 --- a/xen/arch/x86/physdev.c	Thu Jun 02 20:50:01 2005 +0000
     9.2 +++ b/xen/arch/x86/physdev.c	Thu Jun 02 21:25:05 2005 +0000
     9.3 @@ -6,6 +6,7 @@
     9.4  #include <xen/sched.h>
     9.5  #include <xen/irq.h>
     9.6  #include <xen/event.h>
     9.7 +#include <asm/current.h>
     9.8  #include <asm/smpboot.h>
     9.9  #include <public/xen.h>
    9.10  #include <public/physdev.h>
    10.1 --- a/xen/arch/x86/smp.c	Thu Jun 02 20:50:01 2005 +0000
    10.2 +++ b/xen/arch/x86/smp.c	Thu Jun 02 21:25:05 2005 +0000
    10.3 @@ -14,6 +14,7 @@
    10.4  #include <xen/delay.h>
    10.5  #include <xen/perfc.h>
    10.6  #include <xen/spinlock.h>
    10.7 +#include <asm/current.h>
    10.8  #include <asm/smp.h>
    10.9  #include <asm/mc146818rtc.h>
   10.10  #include <asm/flushtlb.h>
    11.1 --- a/xen/arch/x86/smpboot.c	Thu Jun 02 20:50:01 2005 +0000
    11.2 +++ b/xen/arch/x86/smpboot.c	Thu Jun 02 21:25:05 2005 +0000
    11.3 @@ -40,6 +40,7 @@
    11.4  #include <xen/sched.h>
    11.5  #include <xen/irq.h>
    11.6  #include <xen/delay.h>
    11.7 +#include <asm/current.h>
    11.8  #include <asm/mc146818rtc.h>
    11.9  #include <asm/desc.h>
   11.10  #include <asm/div64.h>
    12.1 --- a/xen/arch/x86/vmx_io.c	Thu Jun 02 20:50:01 2005 +0000
    12.2 +++ b/xen/arch/x86/vmx_io.c	Thu Jun 02 21:25:05 2005 +0000
    12.3 @@ -23,6 +23,7 @@
    12.4  #include <xen/errno.h>
    12.5  #include <xen/trace.h>
    12.6  
    12.7 +#include <asm/current.h>
    12.8  #include <asm/cpufeature.h>
    12.9  #include <asm/processor.h>
   12.10  #include <asm/msr.h>
    13.1 --- a/xen/arch/x86/vmx_vmcs.c	Thu Jun 02 20:50:01 2005 +0000
    13.2 +++ b/xen/arch/x86/vmx_vmcs.c	Thu Jun 02 21:25:05 2005 +0000
    13.3 @@ -23,6 +23,7 @@
    13.4  #include <xen/lib.h>
    13.5  #include <xen/errno.h>
    13.6  
    13.7 +#include <asm/current.h>
    13.8  #include <asm/cpufeature.h>
    13.9  #include <asm/processor.h>
   13.10  #include <asm/msr.h>
    14.1 --- a/xen/arch/x86/x86_32/domain_page.c	Thu Jun 02 20:50:01 2005 +0000
    14.2 +++ b/xen/arch/x86/x86_32/domain_page.c	Thu Jun 02 21:25:05 2005 +0000
    14.3 @@ -15,6 +15,7 @@
    14.4  #include <xen/sched.h>
    14.5  #include <xen/mm.h>
    14.6  #include <xen/perfc.h>
    14.7 +#include <asm/current.h>
    14.8  #include <asm/domain_page.h>
    14.9  #include <asm/flushtlb.h>
   14.10  #include <asm/hardirq.h>
    15.1 --- a/xen/arch/x86/x86_32/mm.c	Thu Jun 02 20:50:01 2005 +0000
    15.2 +++ b/xen/arch/x86/x86_32/mm.c	Thu Jun 02 21:25:05 2005 +0000
    15.3 @@ -22,6 +22,7 @@
    15.4  #include <xen/lib.h>
    15.5  #include <xen/init.h>
    15.6  #include <xen/mm.h>
    15.7 +#include <asm/current.h>
    15.8  #include <asm/page.h>
    15.9  #include <asm/flushtlb.h>
   15.10  #include <asm/fixmap.h>
    16.1 --- a/xen/arch/x86/x86_32/traps.c	Thu Jun 02 20:50:01 2005 +0000
    16.2 +++ b/xen/arch/x86/x86_32/traps.c	Thu Jun 02 21:25:05 2005 +0000
    16.3 @@ -6,6 +6,7 @@
    16.4  #include <xen/console.h>
    16.5  #include <xen/mm.h>
    16.6  #include <xen/irq.h>
    16.7 +#include <asm/current.h>
    16.8  #include <asm/flushtlb.h>
    16.9  
   16.10  #ifdef CONFIG_VMX
    17.1 --- a/xen/arch/x86/x86_64/mm.c	Thu Jun 02 20:50:01 2005 +0000
    17.2 +++ b/xen/arch/x86/x86_64/mm.c	Thu Jun 02 21:25:05 2005 +0000
    17.3 @@ -22,6 +22,7 @@
    17.4  #include <xen/init.h>
    17.5  #include <xen/mm.h>
    17.6  #include <xen/sched.h>
    17.7 +#include <asm/current.h>
    17.8  #include <asm/asm_defns.h>
    17.9  #include <asm/page.h>
   17.10  #include <asm/flushtlb.h>
    18.1 --- a/xen/arch/x86/x86_64/traps.c	Thu Jun 02 20:50:01 2005 +0000
    18.2 +++ b/xen/arch/x86/x86_64/traps.c	Thu Jun 02 21:25:05 2005 +0000
    18.3 @@ -8,6 +8,7 @@
    18.4  #include <xen/irq.h>
    18.5  #include <xen/console.h>
    18.6  #include <xen/sched.h>
    18.7 +#include <asm/current.h>
    18.8  #include <asm/flushtlb.h>
    18.9  #include <asm/msr.h>
   18.10  
    19.1 --- a/xen/common/dom0_ops.c	Thu Jun 02 20:50:01 2005 +0000
    19.2 +++ b/xen/common/dom0_ops.c	Thu Jun 02 21:25:05 2005 +0000
    19.3 @@ -18,6 +18,7 @@
    19.4  #include <xen/trace.h>
    19.5  #include <xen/console.h>
    19.6  #include <public/sched_ctl.h>
    19.7 +#include <asm/current.h>
    19.8  
    19.9  extern long arch_do_dom0_op(dom0_op_t *op, dom0_op_t *u_dom0_op);
   19.10  extern void arch_getdomaininfo_ctxt(
    20.1 --- a/xen/common/dom_mem_ops.c	Thu Jun 02 20:50:01 2005 +0000
    20.2 +++ b/xen/common/dom_mem_ops.c	Thu Jun 02 21:25:05 2005 +0000
    20.3 @@ -14,6 +14,7 @@
    20.4  #include <xen/sched.h>
    20.5  #include <xen/event.h>
    20.6  #include <xen/shadow.h>
    20.7 +#include <asm/current.h>
    20.8  #include <asm/domain_page.h>
    20.9  #include <asm/hardirq.h>
   20.10  
    21.1 --- a/xen/common/event_channel.c	Thu Jun 02 20:50:01 2005 +0000
    21.2 +++ b/xen/common/event_channel.c	Thu Jun 02 21:25:05 2005 +0000
    21.3 @@ -22,6 +22,7 @@
    21.4  #include <xen/sched.h>
    21.5  #include <xen/event.h>
    21.6  #include <xen/irq.h>
    21.7 +#include <asm/current.h>
    21.8  
    21.9  #include <public/xen.h>
   21.10  #include <public/event_channel.h>
    22.1 --- a/xen/common/multicall.c	Thu Jun 02 20:50:01 2005 +0000
    22.2 +++ b/xen/common/multicall.c	Thu Jun 02 21:25:05 2005 +0000
    22.3 @@ -10,6 +10,7 @@
    22.4  #include <xen/sched.h>
    22.5  #include <xen/event.h>
    22.6  #include <xen/multicall.h>
    22.7 +#include <asm/current.h>
    22.8  #include <asm/hardirq.h>
    22.9  
   22.10  struct mc_state mc_state[NR_CPUS];
    23.1 --- a/xen/drivers/char/console.c	Thu Jun 02 20:50:01 2005 +0000
    23.2 +++ b/xen/drivers/char/console.c	Thu Jun 02 21:25:05 2005 +0000
    23.3 @@ -19,6 +19,7 @@
    23.4  #include <xen/keyhandler.h>
    23.5  #include <xen/mm.h>
    23.6  #include <xen/delay.h>
    23.7 +#include <asm/current.h>
    23.8  #include <asm/uaccess.h>
    23.9  #include <asm/debugger.h>
   23.10  #include <asm/io.h>
    24.1 --- a/xen/include/asm-x86/shadow.h	Thu Jun 02 20:50:01 2005 +0000
    24.2 +++ b/xen/include/asm-x86/shadow.h	Thu Jun 02 21:25:05 2005 +0000
    24.3 @@ -27,6 +27,7 @@
    24.4  #include <xen/perfc.h>
    24.5  #include <xen/sched.h>
    24.6  #include <xen/mm.h>
    24.7 +#include <asm/current.h>
    24.8  #include <asm/flushtlb.h>
    24.9  #include <asm/processor.h>
   24.10  #include <asm/domain_page.h>
    25.1 --- a/xen/include/asm-x86/smp.h	Thu Jun 02 20:50:01 2005 +0000
    25.2 +++ b/xen/include/asm-x86/smp.h	Thu Jun 02 21:25:05 2005 +0000
    25.3 @@ -8,7 +8,6 @@
    25.4  #include <xen/config.h>
    25.5  #include <xen/kernel.h>
    25.6  #include <xen/cpumask.h>
    25.7 -#include <asm/current.h>
    25.8  #endif
    25.9  
   25.10  #ifdef CONFIG_X86_LOCAL_APIC
    26.1 --- a/xen/include/xen/softirq.h	Thu Jun 02 20:50:01 2005 +0000
    26.2 +++ b/xen/include/xen/softirq.h	Thu Jun 02 21:25:05 2005 +0000
    26.3 @@ -17,6 +17,7 @@
    26.4  #include <xen/lib.h>
    26.5  #include <xen/smp.h>
    26.6  #include <asm/bitops.h>
    26.7 +#include <asm/current.h>
    26.8  #include <asm/hardirq.h>
    26.9  
   26.10  typedef void (*softirq_handler)(void);