Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79824
b: refs/heads/master
c: 1c69524
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jan 30, 2008
1 parent 113233c commit fd50fd1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 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: 04e1ba852132c9ad006affcd5b8c8606295170b0
refs/heads/master: 1c69524c2e5b83e52a098ebdeb4a8b52169f6a03
7 changes: 7 additions & 0 deletions trunk/arch/x86/kernel/apic_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,13 @@ void __cpuinit setup_local_APIC(void)
value = APIC_DM_NMI | APIC_LVT_MASKED;
apic_write(APIC_LVT1, value);

/*
* Now enable IO-APICs, actually call clear_IO_APIC
* We need clear_IO_APIC before enabling vector on BP
*/
if (!smp_processor_id() && !skip_ioapic_setup && nr_ioapics)
enable_IO_APIC();

{
unsigned oldvalue;
maxlvt = lapic_get_maxlvt();
Expand Down
7 changes: 5 additions & 2 deletions trunk/arch/x86/kernel/io_apic_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ void __apicdebuginit print_PIC(void)

#endif /* 0 */

static void __init enable_IO_APIC(void)
void __init enable_IO_APIC(void)
{
union IO_APIC_reg_01 reg_01;
int i8259_apic, i8259_pin;
Expand Down Expand Up @@ -1789,7 +1789,10 @@ __setup("no_timer_check", notimercheck);

void __init setup_IO_APIC(void)
{
enable_IO_APIC();

/*
* calling enable_IO_APIC() is moved to setup_local_APIC for BP
*/

if (acpi_ioapic)
io_apic_irqs = ~0; /* all IRQs go through IOAPIC */
Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-x86/hw_irq_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ extern void init_8259A(int aeoi);
extern void send_IPI_self(int vector);
extern void init_VISWS_APIC_irqs(void);
extern void setup_IO_APIC(void);
extern void enable_IO_APIC(void);
extern void disable_IO_APIC(void);
extern void print_IO_APIC(void);
extern int IO_APIC_get_PCI_irq_vector(int bus, int slot, int fn);
Expand Down

0 comments on commit fd50fd1

Please sign in to comment.