Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71700
b: refs/heads/master
c: 71b3123
h: refs/heads/master
v: v3
  • Loading branch information
Mike Travis authored and Thomas Gleixner committed Oct 19, 2007
1 parent 021acf6 commit 190ae17
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 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: b6278470b7cdbf2bf6ba7345130d83924451a51a
refs/heads/master: 71b31233a215be27e2efbcc0e739cbebb0bde078
2 changes: 2 additions & 0 deletions trunk/arch/x86/kernel/mpparse_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ unsigned long mp_lapic_addr = 0;

/* Processor that is doing the boot up */
unsigned int boot_cpu_id = -1U;
EXPORT_SYMBOL(boot_cpu_id);

/* Internal processor count */
unsigned int num_processors __cpuinitdata = 0;

Expand Down
8 changes: 1 addition & 7 deletions trunk/drivers/acpi/processor_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,12 +421,6 @@ static int map_lsapic_id(struct acpi_subtable_header *entry,
return 0;
}

#ifdef CONFIG_IA64
#define arch_cpu_to_apicid ia64_cpu_to_sapicid
#else
#define arch_cpu_to_apicid x86_cpu_to_apicid
#endif

static int map_madt_entry(u32 acpi_id)
{
unsigned long madt_end, entry;
Expand Down Expand Up @@ -500,7 +494,7 @@ static int get_cpu_id(acpi_handle handle, u32 acpi_id)
return apic_id;

for (i = 0; i < NR_CPUS; ++i) {
if (arch_cpu_to_apicid[i] == apic_id)
if (cpu_physical_id(i) == apic_id)
return i;
}
return -1;
Expand Down

0 comments on commit 190ae17

Please sign in to comment.