aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/alternative.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2007-05-02 13:27:14 -0400
committerAndi Kleen <andi@basil.nowhere.org>2007-05-02 13:27:14 -0400
commit98de032b681d8a7532d44dfc66aa5c0c1c755a9d (patch)
tree7e36cf682a113354427ad1076b38d0c3d0aebd8c /arch/i386/kernel/alternative.c
parentd6dd61c831226f9cd7750885da04d360d6455101 (diff)
[PATCH] i386: PARAVIRT: rename struct paravirt_patch to paravirt_patch_site for clarity
Rename struct paravirt_patch to paravirt_patch_site, so that it clearly refers to a callsite, and not the patch which may be applied to that callsite. Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com> Signed-off-by: Andi Kleen <ak@suse.de> Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: Zachary Amsden <zach@vmware.com>
Diffstat (limited to 'arch/i386/kernel/alternative.c')
-rw-r--r--arch/i386/kernel/alternative.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/i386/kernel/alternative.c b/arch/i386/kernel/alternative.c
index 915b6c4d9baf..dae3ded9041c 100644
--- a/arch/i386/kernel/alternative.c
+++ b/arch/i386/kernel/alternative.c
@@ -325,9 +325,10 @@ void alternatives_smp_switch(int smp)
325#endif 325#endif
326 326
327#ifdef CONFIG_PARAVIRT 327#ifdef CONFIG_PARAVIRT
328void apply_paravirt(struct paravirt_patch *start, struct paravirt_patch *end) 328void apply_paravirt(struct paravirt_patch_site *start,
329 struct paravirt_patch_site *end)
329{ 330{
330 struct paravirt_patch *p; 331 struct paravirt_patch_site *p;
331 332
332 for (p = start; p < end; p++) { 333 for (p = start; p < end; p++) {
333 unsigned int used; 334 unsigned int used;
@@ -342,7 +343,7 @@ void apply_paravirt(struct paravirt_patch *start, struct paravirt_patch *end)
342 /* Sync to be conservative, in case we patched following instructions */ 343 /* Sync to be conservative, in case we patched following instructions */
343 sync_core(); 344 sync_core();
344} 345}
345extern struct paravirt_patch __start_parainstructions[], 346extern struct paravirt_patch_site __start_parainstructions[],
346 __stop_parainstructions[]; 347 __stop_parainstructions[];
347#endif /* CONFIG_PARAVIRT */ 348#endif /* CONFIG_PARAVIRT */
348 349