aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-08-20 07:04:10 -0400
committerThomas Gleixner <tglx@linutronix.de>2009-08-31 03:35:45 -0400
commit42bbdb43b16d233b2dacb4cd76e28f61c2a86dc6 (patch)
treef70bc7a928b5131e69971ff1fb5a30a0bb8f52c3 /arch/x86/include
parent428cf9025b15573e16e658032f2b963283e34ae0 (diff)
x86: Replace ARCH_SETUP by a proper x86_init_ops
ARCH_SETUP is a horrible leftover from the old arch/i386 mach support code. It still has a lonely user in xen. Move it to x86_init_ops. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/paravirt.h1
-rw-r--r--arch/x86/include/asm/paravirt_types.h1
-rw-r--r--arch/x86/include/asm/x86_init.h9
3 files changed, 9 insertions, 2 deletions
diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h
index 6a07af432c8..22cb3872f6d 100644
--- a/arch/x86/include/asm/paravirt.h
+++ b/arch/x86/include/asm/paravirt.h
@@ -24,7 +24,6 @@ static inline void load_sp0(struct tss_struct *tss,
24 PVOP_VCALL2(pv_cpu_ops.load_sp0, tss, thread); 24 PVOP_VCALL2(pv_cpu_ops.load_sp0, tss, thread);
25} 25}
26 26
27#define ARCH_SETUP pv_init_ops.arch_setup();
28static inline unsigned long get_wallclock(void) 27static inline unsigned long get_wallclock(void)
29{ 28{
30 return PVOP_CALL0(unsigned long, pv_time_ops.get_wallclock); 29 return PVOP_CALL0(unsigned long, pv_time_ops.get_wallclock);
diff --git a/arch/x86/include/asm/paravirt_types.h b/arch/x86/include/asm/paravirt_types.h
index 25922afb634..a05085e5fdb 100644
--- a/arch/x86/include/asm/paravirt_types.h
+++ b/arch/x86/include/asm/paravirt_types.h
@@ -80,7 +80,6 @@ struct pv_init_ops {
80 unsigned long addr, unsigned len); 80 unsigned long addr, unsigned len);
81 81
82 /* Basic arch-specific setup */ 82 /* Basic arch-specific setup */
83 void (*arch_setup)(void);
84 void (*post_allocator_init)(void); 83 void (*post_allocator_init)(void);
85 84
86 /* Print a banner to identify the environment */ 85 /* Print a banner to identify the environment */
diff --git a/arch/x86/include/asm/x86_init.h b/arch/x86/include/asm/x86_init.h
index 07c37bd879f..ceffbf358fc 100644
--- a/arch/x86/include/asm/x86_init.h
+++ b/arch/x86/include/asm/x86_init.h
@@ -57,6 +57,14 @@ struct x86_init_irqs {
57}; 57};
58 58
59/** 59/**
60 * struct x86_init_oem - oem platform specific customizing functions
61 * @arch_setup: platform specific architecure setup
62 */
63struct x86_init_oem {
64 void (*arch_setup)(void);
65};
66
67/**
60 * struct x86_init_ops - functions for platform specific setup 68 * struct x86_init_ops - functions for platform specific setup
61 * 69 *
62 */ 70 */
@@ -64,6 +72,7 @@ struct x86_init_ops {
64 struct x86_init_resources resources; 72 struct x86_init_resources resources;
65 struct x86_init_mpparse mpparse; 73 struct x86_init_mpparse mpparse;
66 struct x86_init_irqs irqs; 74 struct x86_init_irqs irqs;
75 struct x86_init_oem oem;
67}; 76};
68 77
69extern struct x86_init_ops x86_init; 78extern struct x86_init_ops x86_init;