Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136871
b: refs/heads/master
c: 28aa29e
h: refs/heads/master
i:
  136869: 82c6a6e
  136867: 3f2cd8b
  136863: f05021c
v: v3
  • Loading branch information
Ingo Molnar committed Feb 17, 2009
1 parent 3e30224 commit c54ee24
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 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: 7d01d32d3b9becd6deba318b718db3d9fc181d23
refs/heads/master: 28aa29eeb3918f820b914679cfc4404972f2df32
13 changes: 1 addition & 12 deletions trunk/arch/x86/include/asm/genapic.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ extern void apic_send_IPI_self(int vector);
extern struct genapic apic_x2apic_uv_x;
DECLARE_PER_CPU(int, x2apic_extra_bits);

extern void default_setup_apic_routing(void);

extern int default_cpu_present_to_apicid(int mps_cpu);
extern int default_check_phys_apicid_present(int boot_cpu_physical_apicid);
#endif
Expand Down Expand Up @@ -211,10 +209,9 @@ static inline unsigned int read_apic_id(void)
return apic->get_apic_id(reg);
}

#ifdef CONFIG_X86_64
extern void default_setup_apic_routing(void);
#else

#ifdef CONFIG_X86_32
/*
* Set up the logical destination ID.
*
Expand Down Expand Up @@ -251,14 +248,6 @@ static inline int default_phys_pkg_id(int cpuid_apic, int index_msb)
return cpuid_apic >> index_msb;
}

static inline void default_setup_apic_routing(void)
{
#ifdef CONFIG_X86_IO_APIC
printk("Enabling APIC mode: %s. Using %d I/O APICs\n",
"Flat", nr_ioapics);
#endif
}

extern int default_apicid_to_node(int logical_apicid);

#endif
Expand Down
9 changes: 9 additions & 0 deletions trunk/arch/x86/kernel/probe_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ int no_broadcast = DEFAULT_SEND_IPI;

#ifdef CONFIG_X86_LOCAL_APIC

void default_setup_apic_routing(void)
{
#ifdef CONFIG_X86_IO_APIC
printk(KERN_INFO
"Enabling APIC mode: Flat. Using %d I/O APICs\n",
nr_ioapics);
#endif
}

static void default_vector_allocation_domain(int cpu, struct cpumask *retmask)
{
/*
Expand Down

0 comments on commit c54ee24

Please sign in to comment.