Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188088
b: refs/heads/master
c: 1113073
h: refs/heads/master
v: v3
  • Loading branch information
Alex Chiang authored and Len Brown committed Mar 15, 2010
1 parent 778c1dd commit 30c7ee4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 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: d8191fa4a33fdc817277da4f2b7f771ff605a41c
refs/heads/master: 11130736c99c37e253f45b2d3fd30b07313f83c6
15 changes: 9 additions & 6 deletions trunk/drivers/acpi/processor_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,15 @@ static int map_lapic_id(struct acpi_subtable_header *entry,
{
struct acpi_madt_local_apic *lapic =
(struct acpi_madt_local_apic *)entry;
if ((lapic->lapic_flags & ACPI_MADT_ENABLED) &&
lapic->processor_id == acpi_id) {
*apic_id = lapic->id;
return 1;
}
return 0;

if (!(lapic->lapic_flags & ACPI_MADT_ENABLED))
return 0;

if (lapic->processor_id != acpi_id)
return 0;

*apic_id = lapic->id;
return 1;
}

static int map_x2apic_id(struct acpi_subtable_header *entry,
Expand Down

0 comments on commit 30c7ee4

Please sign in to comment.