Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53885
b: refs/heads/master
c: 441d40d
h: refs/heads/master
i:
  53883: b3db17e
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Andi Kleen committed May 2, 2007
1 parent 5395cc4 commit 995ed17
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e0bb8643974397a8d36670e06e6a54bb84f3289f
refs/heads/master: 441d40dca024deb305a5e3d5003e8cd9d364d10f
2 changes: 1 addition & 1 deletion trunk/arch/i386/kernel/alternative.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
10 changes: 3 additions & 7 deletions trunk/arch/i386/kernel/vmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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();

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/i386/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
4 changes: 2 additions & 2 deletions trunk/include/asm-i386/alternative.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
4 changes: 2 additions & 2 deletions trunk/include/asm-x86_64/alternative.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 995ed17

Please sign in to comment.