Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188089
b: refs/heads/master
c: d674209
h: refs/heads/master
i:
  188087: 778c1dd
v: v3
  • Loading branch information
Alex Chiang authored and Len Brown committed Mar 15, 2010
1 parent 30c7ee4 commit b2e1a77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 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: 11130736c99c37e253f45b2d3fd30b07313f83c6
refs/heads/master: d67420956b7b1dcffb894b2f1f81b9408fca1b4c
12 changes: 3 additions & 9 deletions trunk/drivers/acpi/processor_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,22 +66,16 @@ static int map_x2apic_id(struct acpi_subtable_header *entry,
{
struct acpi_madt_local_x2apic *apic =
(struct acpi_madt_local_x2apic *)entry;
u32 tmp = apic->local_apic_id;

/* Only check enabled APICs*/
if (!(apic->lapic_flags & ACPI_MADT_ENABLED))
return 0;

/* Device statement declaration type */
if (device_declaration) {
if (apic->uid == acpi_id)
goto found;
if (device_declaration && (apic->uid == acpi_id)) {
*apic_id = apic->local_apic_id;
return 1;
}

return 0;
found:
*apic_id = tmp;
return 1;
}

static int map_lsapic_id(struct acpi_subtable_header *entry,
Expand Down

0 comments on commit b2e1a77

Please sign in to comment.