Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188091
b: refs/heads/master
c: 149fe9c
h: refs/heads/master
i:
  188089: b2e1a77
  188087: 778c1dd
v: v3
  • Loading branch information
Alex Chiang authored and Len Brown committed Mar 15, 2010
1 parent 8c44e60 commit e21dc2b
Show file tree
Hide file tree
Showing 2 changed files with 10 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: eae701ceadf5aa3fc3b334029ef71f6885ef1cde
refs/heads/master: 149fe9c293f76803206648270ca24fc2604d5f01
18 changes: 9 additions & 9 deletions trunk/drivers/acpi/processor_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ static struct dmi_system_id __cpuinitdata processor_idle_dmi_table[] = {
};

#ifdef CONFIG_SMP
static struct acpi_table_madt *madt;

static int map_lapic_id(struct acpi_subtable_header *entry,
u32 acpi_id, int *apic_id)
{
Expand Down Expand Up @@ -100,8 +98,17 @@ static int map_lsapic_id(struct acpi_subtable_header *entry,
static int map_madt_entry(int type, u32 acpi_id)
{
unsigned long madt_end, entry;
static struct acpi_table_madt *madt;
static int read_madt;
int apic_id = -1;

if (!read_madt) {
if (ACPI_FAILURE(acpi_get_table(ACPI_SIG_MADT, 0,
(struct acpi_table_header **)&madt)))
madt = NULL;
read_madt++;
}

if (!madt)
return apic_id;

Expand Down Expand Up @@ -335,13 +342,6 @@ early_init_pdc(acpi_handle handle, u32 lvl, void *context, void **rv)

void __init acpi_early_processor_set_pdc(void)
{

#ifdef CONFIG_SMP
if (ACPI_FAILURE(acpi_get_table(ACPI_SIG_MADT, 0,
(struct acpi_table_header **)&madt)))
madt = NULL;
#endif

/*
* Check whether the system is DMI table. If yes, OSPM
* should not use mwait for CPU-states.
Expand Down

0 comments on commit e21dc2b

Please sign in to comment.