Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88855
b: refs/heads/master
c: 9f3734f
h: refs/heads/master
i:
  88853: d959b70
  88851: 2ae215a
  88847: 6920479
v: v3
  • Loading branch information
Glauber de Oliveira Costa authored and Ingo Molnar committed Apr 17, 2008
1 parent 939d330 commit d682c9b
Show file tree
Hide file tree
Showing 5 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: 771263d31114adb5e234364a58280c876c2ed182
refs/heads/master: 9f3734f631267d2f36008833b62670ca342ac000
2 changes: 2 additions & 0 deletions trunk/arch/x86/kernel/smpboot_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ static int __init smp_sanity_check(unsigned max_cpus)
printk(KERN_ERR "BIOS bug, local APIC #%d not detected!...\n",
boot_cpu_physical_apicid);
printk(KERN_ERR "... forcing use of dummy APIC emulation. (tell your hw vendor)\n");
smpboot_clear_io_apic();
return -1;
}

Expand All @@ -173,6 +174,7 @@ static int __init smp_sanity_check(unsigned max_cpus)
setup_local_APIC();
end_local_APIC_setup();
}
smpboot_clear_io_apic();
return -1;
}
return 0;
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/smpboot_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static int __init smp_sanity_check(unsigned max_cpus)
printk(KERN_ERR "BIOS bug, local APIC #%d not detected!...\n",
boot_cpu_physical_apicid);
printk(KERN_ERR "... forcing use of dummy APIC emulation. (tell your hw vendor)\n");
nr_ioapics = 0;
smpboot_clear_io_apic();
return -1;
}

Expand All @@ -145,7 +145,7 @@ static int __init smp_sanity_check(unsigned max_cpus)
*/
if (!max_cpus) {
printk(KERN_INFO "SMP mode deactivated, forcing use of dummy APIC emulation.\n");
nr_ioapics = 0;
smpboot_clear_io_apic();
return -1;
}

Expand Down
5 changes: 5 additions & 0 deletions trunk/include/asm-x86/mach-default/smpboot_hooks.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,8 @@ static inline void smpboot_setup_io_apic(void)
else
nr_ioapics = 0;
}

static inline void smpboot_clear_io_apic(void)
{
nr_ioapics = 0;
}
4 changes: 4 additions & 0 deletions trunk/include/asm-x86/mach-visws/smpboot_hooks.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ static inline void smpboot_restore_warm_reset_vector(void)
static inline void smpboot_setup_io_apic(void)
{
}

static inline void smpboot_clear_io_apic(void)
{
}

0 comments on commit d682c9b

Please sign in to comment.