Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30512
b: refs/heads/master
c: 75bd665
h: refs/heads/master
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Jun 26, 2006
1 parent 3aa933b commit 39d0b65
Show file tree
Hide file tree
Showing 2 changed files with 3 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: e42f94373764d825e2c0464092738f66f5d3effb
refs/heads/master: 75bd665cc9f4d0f67164d9145e446ae554d4ed3f
4 changes: 2 additions & 2 deletions trunk/arch/x86_64/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -520,13 +520,13 @@ asmlinkage void smp_call_function_interrupt(void)

int safe_smp_processor_id(void)
{
int apicid, i;
unsigned apicid, i;

if (disable_apic)
return 0;

apicid = hard_smp_processor_id();
if (x86_cpu_to_apicid[apicid] == apicid)
if (apicid < NR_CPUS && x86_cpu_to_apicid[apicid] == apicid)
return apicid;

for (i = 0; i < NR_CPUS; ++i) {
Expand Down

0 comments on commit 39d0b65

Please sign in to comment.