Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26869
b: refs/heads/master
c: be0d03f
h: refs/heads/master
i:
  26867: 21c8af8
v: v3
  • Loading branch information
Vivek Goyal authored and Linus Torvalds committed May 21, 2006
1 parent bd15dee commit 28ddb9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5daa3ba0c6a41a8bb4ba17ad8d5514172e103504
refs/heads/master: be0d03f1c3d3612fe2b6aa451ae87a89382c9231
8 changes: 8 additions & 0 deletions trunk/arch/i386/kernel/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1341,6 +1341,14 @@ int __init APIC_init_uniprocessor (void)

connect_bsp_APIC();

/*
* Hack: In case of kdump, after a crash, kernel might be booting
* on a cpu with non-zero lapic id. But boot_cpu_physical_apicid
* might be zero if read from MP tables. Get it from LAPIC.
*/
#ifdef CONFIG_CRASH_DUMP
boot_cpu_physical_apicid = GET_APIC_ID(apic_read(APIC_ID));
#endif
phys_cpu_present_map = physid_mask_of_physid(boot_cpu_physical_apicid);

setup_local_APIC();
Expand Down

0 comments on commit 28ddb9e

Please sign in to comment.