Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212095
b: refs/heads/master
c: fa47f7e
h: refs/heads/master
i:
  212093: f5f1eaf
  212091: 0263725
  212087: d63cfdd
  212079: 734b2c6
  212063: 7da5ab0
  212031: ec08ebc
  211967: 16b8970
v: v3
  • Loading branch information
Suresh Siddha authored and H. Peter Anvin committed Sep 16, 2010
1 parent 04df7fa commit 2f8535c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 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: 62a92f4c69cd1d9361ad8c16be1dd16e6821bc15
refs/heads/master: fa47f7e52874683a9659df2f1f143105f676dc0f
3 changes: 0 additions & 3 deletions trunk/arch/x86/kernel/apic/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1665,10 +1665,7 @@ int __init APIC_init_uniprocessor(void)
}
#endif

#ifndef CONFIG_SMP
enable_IR_x2apic();
default_setup_apic_routing();
#endif

verify_local_APIC();
connect_bsp_APIC();
Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/x86/kernel/apic/probe_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ static int apicid_phys_pkg_id(int initial_apic_id, int index_msb)
*/
void __init default_setup_apic_routing(void)
{

enable_IR_x2apic();

#ifdef CONFIG_X86_X2APIC
if (x2apic_mode
#ifdef CONFIG_X86_UV
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -1109,15 +1109,15 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)
}
set_cpu_sibling_map(0);

enable_IR_x2apic();
default_setup_apic_routing();

if (smp_sanity_check(max_cpus) < 0) {
printk(KERN_INFO "SMP disabled\n");
disable_smp();
goto out;
}

default_setup_apic_routing();

preempt_disable();
if (read_apic_id() != boot_cpu_physical_apicid) {
panic("Boot APIC ID in local APIC unexpected (%d vs %d)",
Expand Down

0 comments on commit 2f8535c

Please sign in to comment.