Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35532
b: refs/heads/master
c: bfa0e9a
h: refs/heads/master
v: v3
  • Loading branch information
keith mannthey authored and Linus Torvalds committed Sep 26, 2006
1 parent 8f71c90 commit eea056f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 3212fe1594e577463bc8601d28aa008f520c3377
refs/heads/master: bfa0e9a07cd31f3858239dbc93011b82780acf4b
6 changes: 5 additions & 1 deletion trunk/arch/i386/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,9 +642,13 @@ static void map_cpu_to_logical_apicid(void)
{
int cpu = smp_processor_id();
int apicid = logical_smp_processor_id();
int node = apicid_to_node(apicid);

if (!node_online(node))
node = first_online_node;

cpu_2_logical_apicid[cpu] = apicid;
map_cpu_to_node(cpu, apicid_to_node(apicid));
map_cpu_to_node(cpu, node);
}

static void unmap_cpu_to_logical_apicid(int cpu)
Expand Down

0 comments on commit eea056f

Please sign in to comment.