Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180651
b: refs/heads/master
c: a493229
h: refs/heads/master
i:
  180649: 56cf37e
  180647: 7da70c9
v: v3
  • Loading branch information
Alex Chiang authored and Len Brown committed Jan 22, 2010
1 parent 2b159c7 commit d9fd202
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 0406ad336c066190770cbf350b552d608e43ed09
refs/heads/master: a4932299d03a1c20e58e4cc40a66fb0a048fb3a7
7 changes: 7 additions & 0 deletions trunk/drivers/acpi/processor_pdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,18 @@ acpi_processor_eval_pdc(acpi_handle handle, struct acpi_object_list *pdc_in)
return status;
}

static int early_pdc_done;

void acpi_processor_set_pdc(acpi_handle handle)
{
struct acpi_object_list *obj_list;

if (arch_has_acpi_pdc() == false)
return;

if (early_pdc_done)
return;

obj_list = acpi_processor_alloc_pdc();
if (!obj_list)
return;
Expand Down Expand Up @@ -199,4 +204,6 @@ void __init acpi_early_processor_set_pdc(void)
acpi_walk_namespace(ACPI_TYPE_PROCESSOR, ACPI_ROOT_OBJECT,
ACPI_UINT32_MAX,
early_init_pdc, NULL, NULL, NULL);

early_pdc_done = 1;
}

0 comments on commit d9fd202

Please sign in to comment.