aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2007-05-02 13:27:16 -0400
committerAndi Kleen <andi@basil.nowhere.org>2007-05-02 13:27:16 -0400
commit441d40dca024deb305a5e3d5003e8cd9d364d10f (patch)
treee6836e5e325aa717bca9fab4fa188b64a979261a
parente0bb8643974397a8d36670e06e6a54bb84f3289f (diff)
[PATCH] x86: PARAVIRT: Jeremy Fitzhardinge <jeremy@goop.org>
The other symbols used to delineate the alt-instructions sections have the form __foo/__foo_end. Rename parainstructions to match. Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com> Signed-off-by: Andi Kleen <ak@suse.de> Cc: Andi Kleen <ak@suse.de> Cc: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--arch/i386/kernel/alternative.c2
-rw-r--r--arch/i386/kernel/vmi.c10
-rw-r--r--arch/i386/kernel/vmlinux.lds.S4
-rw-r--r--include/asm-i386/alternative.h4
-rw-r--r--include/asm-x86_64/alternative.h4
5 files changed, 10 insertions, 14 deletions
diff --git a/arch/i386/kernel/alternative.c b/arch/i386/kernel/alternative.c
index 080a59d56ea6..e5cec6685cc5 100644
--- a/arch/i386/kernel/alternative.c
+++ b/arch/i386/kernel/alternative.c
@@ -399,6 +399,6 @@ void __init alternative_instructions(void)
399 alternatives_smp_switch(0); 399 alternatives_smp_switch(0);
400 } 400 }
401#endif 401#endif
402 apply_paravirt(__start_parainstructions, __stop_parainstructions); 402 apply_paravirt(__parainstructions, __parainstructions_end);
403 local_irq_restore(flags); 403 local_irq_restore(flags);
404} 404}
diff --git a/arch/i386/kernel/vmi.c b/arch/i386/kernel/vmi.c
index 0fae15dee765..c8726c424b35 100644
--- a/arch/i386/kernel/vmi.c
+++ b/arch/i386/kernel/vmi.c
@@ -73,10 +73,6 @@ static struct {
73 void (*set_lazy_mode)(int mode); 73 void (*set_lazy_mode)(int mode);
74} vmi_ops; 74} vmi_ops;
75 75
76/* XXX move this to alternative.h */
77extern struct paravirt_patch __start_parainstructions[],
78 __stop_parainstructions[];
79
80/* Cached VMI operations */ 76/* Cached VMI operations */
81struct vmi_timer_ops vmi_timer_ops; 77struct vmi_timer_ops vmi_timer_ops;
82 78
@@ -548,9 +544,9 @@ vmi_startup_ipi_hook(int phys_apicid, unsigned long start_eip,
548} 544}
549#endif 545#endif
550 546
551static void vmi_set_lazy_mode(int mode) 547static void vmi_set_lazy_mode(enum paravirt_lazy_mode mode)
552{ 548{
553 static DEFINE_PER_CPU(int, lazy_mode); 549 static DEFINE_PER_CPU(enum paravirt_lazy_mode, lazy_mode);
554 550
555 if (!vmi_ops.set_lazy_mode) 551 if (!vmi_ops.set_lazy_mode)
556 return; 552 return;
@@ -912,7 +908,7 @@ static inline int __init activate_vmi(void)
912 * to do this before IRQs get reenabled. Fortunately, it is 908 * to do this before IRQs get reenabled. Fortunately, it is
913 * idempotent. 909 * idempotent.
914 */ 910 */
915 apply_paravirt(__start_parainstructions, __stop_parainstructions); 911 apply_paravirt(__parainstructions, __parainstructions_end);
916 912
917 vmi_bringup(); 913 vmi_bringup();
918 914
diff --git a/arch/i386/kernel/vmlinux.lds.S b/arch/i386/kernel/vmlinux.lds.S
index d125784ddf5e..568caca87715 100644
--- a/arch/i386/kernel/vmlinux.lds.S
+++ b/arch/i386/kernel/vmlinux.lds.S
@@ -166,9 +166,9 @@ SECTIONS
166 } 166 }
167 . = ALIGN(4); 167 . = ALIGN(4);
168 .parainstructions : AT(ADDR(.parainstructions) - LOAD_OFFSET) { 168 .parainstructions : AT(ADDR(.parainstructions) - LOAD_OFFSET) {
169 __start_parainstructions = .; 169 __parainstructions = .;
170 *(.parainstructions) 170 *(.parainstructions)
171 __stop_parainstructions = .; 171 __parainstructions_end = .;
172 } 172 }
173 /* .exit.text is discard at runtime, not link time, to deal with references 173 /* .exit.text is discard at runtime, not link time, to deal with references
174 from .altinstructions and .eh_frame */ 174 from .altinstructions and .eh_frame */
diff --git a/include/asm-i386/alternative.h b/include/asm-i386/alternative.h
index 5b59d07e9d29..277467329583 100644
--- a/include/asm-i386/alternative.h
+++ b/include/asm-i386/alternative.h
@@ -124,8 +124,8 @@ static inline void
124apply_paravirt(struct paravirt_patch_site *start, 124apply_paravirt(struct paravirt_patch_site *start,
125 struct paravirt_patch_site *end) 125 struct paravirt_patch_site *end)
126{} 126{}
127#define __start_parainstructions NULL 127#define __parainstructions NULL
128#define __stop_parainstructions NULL 128#define __parainstructions_end NULL
129#endif 129#endif
130 130
131#endif /* _I386_ALTERNATIVE_H */ 131#endif /* _I386_ALTERNATIVE_H */
diff --git a/include/asm-x86_64/alternative.h b/include/asm-x86_64/alternative.h
index 67ebea3cc481..a09fe85c268e 100644
--- a/include/asm-x86_64/alternative.h
+++ b/include/asm-x86_64/alternative.h
@@ -142,8 +142,8 @@ void apply_paravirt(struct paravirt_patch *start, struct paravirt_patch *end);
142static inline void 142static inline void
143apply_paravirt(struct paravirt_patch *start, struct paravirt_patch *end) 143apply_paravirt(struct paravirt_patch *start, struct paravirt_patch *end)
144{} 144{}
145#define __start_parainstructions NULL 145#define __parainstructions NULL
146#define __stop_parainstructions NULL 146#define __parainstructions_end NULL
147#endif 147#endif
148 148
149#endif /* _X86_64_ALTERNATIVE_H */ 149#endif /* _X86_64_ALTERNATIVE_H */