[PATCH] x86: PARAVIRT: Jeremy Fitzhardinge <jeremy@goop.org>
authorJeremy Fitzhardinge <jeremy@goop.org>
Wed, 2 May 2007 17:27:16 +0000 (19:27 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Wed, 2 May 2007 17:27:16 +0000 (19:27 +0200)
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>
arch/i386/kernel/alternative.c
arch/i386/kernel/vmi.c
arch/i386/kernel/vmlinux.lds.S
include/asm-i386/alternative.h
include/asm-x86_64/alternative.h

index 080a59d56ea69f2aa0e7c72ff1a02526b2044a1a..e5cec6685cc518ebe490d83402a21eac40cf38ee 100644 (file)
@@ -399,6 +399,6 @@ void __init alternative_instructions(void)
                alternatives_smp_switch(0);
        }
 #endif
-       apply_paravirt(__start_parainstructions, __stop_parainstructions);
+       apply_paravirt(__parainstructions, __parainstructions_end);
        local_irq_restore(flags);
 }
index 0fae15dee7650c6336314621521b8fc913d6ed4f..c8726c424b3549a2b45aaa839dc21a3d464769ba 100644 (file)
@@ -73,10 +73,6 @@ static struct {
        void (*set_lazy_mode)(int mode);
 } vmi_ops;
 
-/* XXX move this to alternative.h */
-extern struct paravirt_patch __start_parainstructions[],
-       __stop_parainstructions[];
-
 /* Cached VMI operations */
 struct vmi_timer_ops vmi_timer_ops;
 
@@ -548,9 +544,9 @@ vmi_startup_ipi_hook(int phys_apicid, unsigned long start_eip,
 }
 #endif
 
-static void vmi_set_lazy_mode(int mode)
+static void vmi_set_lazy_mode(enum paravirt_lazy_mode mode)
 {
-       static DEFINE_PER_CPU(int, lazy_mode);
+       static DEFINE_PER_CPU(enum paravirt_lazy_mode, lazy_mode);
 
        if (!vmi_ops.set_lazy_mode)
                return;
@@ -912,7 +908,7 @@ static inline int __init activate_vmi(void)
         * to do this before IRQs get reenabled.  Fortunately, it is
         * idempotent.
         */
-       apply_paravirt(__start_parainstructions, __stop_parainstructions);
+       apply_paravirt(__parainstructions, __parainstructions_end);
 
        vmi_bringup();
 
index d125784ddf5e48f4c0a3b9802b3875dd0dff5af0..568caca877156d354c3c2e20e43c7f91e756d5d9 100644 (file)
@@ -166,9 +166,9 @@ SECTIONS
   }
   . = ALIGN(4);
   .parainstructions : AT(ADDR(.parainstructions) - LOAD_OFFSET) {
-       __start_parainstructions = .;
+       __parainstructions = .;
        *(.parainstructions)
-       __stop_parainstructions = .;
+       __parainstructions_end = .;
   }
   /* .exit.text is discard at runtime, not link time, to deal with references
      from .altinstructions and .eh_frame */
index 5b59d07e9d2959eaf94ebadf000bb5e7cc62e91a..277467329583fbf196da52e250fc28ce85ab525a 100644 (file)
@@ -124,8 +124,8 @@ static inline void
 apply_paravirt(struct paravirt_patch_site *start,
               struct paravirt_patch_site *end)
 {}
-#define __start_parainstructions NULL
-#define __stop_parainstructions NULL
+#define __parainstructions     NULL
+#define __parainstructions_end NULL
 #endif
 
 #endif /* _I386_ALTERNATIVE_H */
index 67ebea3cc48151e6bde25d39fb72fa151f64b2cc..a09fe85c268e7e06943ec01f7c9d500457c9852a 100644 (file)
@@ -142,8 +142,8 @@ void apply_paravirt(struct paravirt_patch *start, struct paravirt_patch *end);
 static inline void
 apply_paravirt(struct paravirt_patch *start, struct paravirt_patch *end)
 {}
-#define __start_parainstructions NULL
-#define __stop_parainstructions NULL
+#define __parainstructions NULL
+#define __parainstructions_end NULL
 #endif
 
 #endif /* _X86_64_ALTERNATIVE_H */