Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95629
b: refs/heads/master
c: 5f46470
h: refs/heads/master
i:
  95627: 5623d1e
v: v3
  • Loading branch information
Hugh Dickins authored and Ingo Molnar committed Apr 30, 2008
1 parent e878c7e commit e8137a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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: 5de8f68b43229cce3d457ca9ac6dab8372a35f18
refs/heads/master: 5f464707c8c18fccd3c6278ad46ac94b5cf15a98
7 changes: 1 addition & 6 deletions trunk/include/asm-x86/mach-default/mach_apic.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,8 @@ static inline int cpu_to_logical_apicid(int cpu)

static inline int cpu_present_to_apicid(int mps_cpu)
{
#ifdef CONFIG_X86_64
if (cpu_present(mps_cpu))
if (mps_cpu < NR_CPUS && cpu_present(mps_cpu))
return (int)per_cpu(x86_bios_cpu_apicid, mps_cpu);
#else
if (mps_cpu < get_physical_broadcast())
return mps_cpu;
#endif
else
return BAD_APICID;
}
Expand Down

0 comments on commit e8137a8

Please sign in to comment.