Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79857
b: refs/heads/master
c: 949ec32
h: refs/heads/master
i:
  79855: 87320fa
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jan 30, 2008
1 parent 4240b85 commit fe8144a
Show file tree
Hide file tree
Showing 2 changed files with 14 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: b3ca74a2bfc66262d21443b160815eb26d6699e6
refs/heads/master: 949ec325c79add68af13705b68a885a1efb84234
13 changes: 13 additions & 0 deletions trunk/arch/x86/kernel/smpboot_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -861,13 +861,26 @@ void __init smp_set_apicids(void)
x86_cpu_to_apicid_ptr = NULL;
}

static void __init smp_cpu_index_default(void)
{
int i;
struct cpuinfo_x86 *c;

for_each_cpu_mask(i, cpu_possible_map) {
c = &cpu_data(i);
/* mark all to hotplug */
c->cpu_index = NR_CPUS;
}
}

/*
* Prepare for SMP bootup. The MP table or ACPI has been read
* earlier. Just do some sanity checking here and enable APIC mode.
*/
void __init smp_prepare_cpus(unsigned int max_cpus)
{
nmi_watchdog_default();
smp_cpu_index_default();
current_cpu_data = boot_cpu_data;
current_thread_info()->cpu = 0; /* needed? */
smp_set_apicids();
Expand Down

0 comments on commit fe8144a

Please sign in to comment.