Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99854
b: refs/heads/master
c: b584176
h: refs/heads/master
v: v3
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Jul 8, 2008
1 parent 58c51e9 commit a6b9f44
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 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: 3fde690011a84e19f98f77bfaa349b2119ddd2d2
refs/heads/master: b5841765a2e735a38612c4e4a82170c33d701b3c
10 changes: 10 additions & 0 deletions trunk/arch/x86/kernel/apic_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,8 @@ int __init APIC_init_uniprocessor(void)

verify_local_APIC();

connect_bsp_APIC();

physid_set_mask_of_physid(boot_cpu_physical_apicid, &phys_cpu_present_map);
apic_write(APIC_ID, SET_APIC_ID(boot_cpu_physical_apicid));

Expand Down Expand Up @@ -999,6 +1001,14 @@ asmlinkage void smp_error_interrupt(void)
irq_exit();
}

/**
* * connect_bsp_APIC - attach the APIC to the interrupt system
* */
void __init connect_bsp_APIC(void)
{
enable_apic_mode();
}

void disconnect_bsp_APIC(int virt_wire_setup)
{
/* Go back to Virtual Wire compatibility mode */
Expand Down
5 changes: 1 addition & 4 deletions trunk/arch/x86/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -1116,9 +1116,7 @@ static int __init smp_sanity_check(unsigned max_cpus)

localise_nmi_watchdog();

#ifdef CONFIG_X86_32
connect_bsp_APIC();
#endif
setup_local_APIC();
end_local_APIC_setup();
return -1;
Expand Down Expand Up @@ -1173,9 +1171,8 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)
}
preempt_enable();

#ifdef CONFIG_X86_32
connect_bsp_APIC();
#endif

/*
* Switch from PIC to APIC mode.
*/
Expand Down

0 comments on commit a6b9f44

Please sign in to comment.