Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163718
b: refs/heads/master
c: f1d7062
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner committed Aug 31, 2009
1 parent 48f7b59 commit 68aee9e
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 20 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: 030cb6c00d242c20e92a3327d0cac17ce02d0cc3
refs/heads/master: f1d7062a235d057e5d85ed2860bef609e0160cde
6 changes: 0 additions & 6 deletions trunk/arch/x86/include/asm/paravirt.h
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,6 @@ static inline void setup_secondary_clock(void)
}
#endif

static inline void paravirt_post_allocator_init(void)
{
if (pv_init_ops.post_allocator_init)
(*pv_init_ops.post_allocator_init)();
}

#ifdef CONFIG_SMP
static inline void startup_ipi_hook(int phys_apicid, unsigned long start_eip,
unsigned long start_esp)
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/x86/include/asm/paravirt_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ struct pv_init_ops {
*/
unsigned (*patch)(u8 type, u16 clobber, void *insnbuf,
unsigned long addr, unsigned len);

/* Basic arch-specific setup */
void (*post_allocator_init)(void);
};


Expand Down
4 changes: 0 additions & 4 deletions trunk/arch/x86/include/asm/setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ static inline int is_visws_box(void) { return 0; }
extern struct x86_quirks *x86_quirks;
extern unsigned long saved_video_mode;

#ifndef CONFIG_PARAVIRT
#define paravirt_post_allocator_init() do {} while (0)
#endif

extern void reserve_standard_io_resources(void);
extern void i386_reserve_resources(void);

Expand Down
1 change: 0 additions & 1 deletion trunk/arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,6 @@ void __init setup_arch(char **cmdline_p)
x86_init.paging.pagetable_setup_start(swapper_pg_dir);
paging_init();
x86_init.paging.pagetable_setup_done(swapper_pg_dir);
paravirt_post_allocator_init();

#ifdef CONFIG_X86_64
map_vsyscall();
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -839,8 +839,6 @@ static const struct pv_info xen_info __initdata = {

static const struct pv_init_ops xen_init_ops __initdata = {
.patch = xen_patch,

.post_allocator_init = xen_post_allocator_init,
};

static const struct pv_time_ops xen_time_ops __initdata = {
Expand Down
5 changes: 4 additions & 1 deletion trunk/arch/x86/xen/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1229,9 +1229,12 @@ static __init void xen_pagetable_setup_start(pgd_t *base)
{
}

static void xen_post_allocator_init(void);

static __init void xen_pagetable_setup_done(pgd_t *base)
{
xen_setup_shared_info();
xen_post_allocator_init();
}

static void xen_write_cr2(unsigned long cr2)
Expand Down Expand Up @@ -1841,7 +1844,7 @@ static void xen_set_fixmap(unsigned idx, phys_addr_t phys, pgprot_t prot)
#endif
}

__init void xen_post_allocator_init(void)
static __init void xen_post_allocator_init(void)
{
pv_mmu_ops.set_pte = xen_set_pte;
pv_mmu_ops.set_pmd = xen_set_pmd;
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/x86/xen/xen-ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ pgd_t *xen_setup_kernel_pagetable(pgd_t *pgd, unsigned long max_pfn);
void xen_ident_map_ISA(void);
void xen_reserve_top(void);

void xen_post_allocator_init(void);

char * __init xen_memory_setup(void);
void __init xen_arch_setup(void);
void __init xen_init_IRQ(void);
Expand Down

0 comments on commit 68aee9e

Please sign in to comment.