|
Lines 268-291
Link Here
|
| 268 |
struct acpi_object_list *pdc_in) |
268 |
struct acpi_object_list *pdc_in) |
| 269 |
{ |
269 |
{ |
| 270 |
acpi_status status = AE_OK; |
270 |
acpi_status status = AE_OK; |
| 271 |
u32 arg0_buf[3]; |
|
|
| 272 |
union acpi_object arg0 = {ACPI_TYPE_BUFFER}; |
| 273 |
struct acpi_object_list no_object = {1, &arg0}; |
| 274 |
struct acpi_object_list *pdc; |
| 275 |
|
271 |
|
| 276 |
ACPI_FUNCTION_TRACE("acpi_processor_set_pdc"); |
272 |
ACPI_FUNCTION_TRACE("acpi_processor_set_pdc"); |
| 277 |
|
273 |
|
| 278 |
arg0.buffer.length = 12; |
274 |
if (!pdc_in) |
| 279 |
arg0.buffer.pointer = (u8 *) arg0_buf; |
275 |
return_VALUE(status); |
| 280 |
arg0_buf[0] = ACPI_PDC_REVISION_ID; |
|
|
| 281 |
arg0_buf[1] = 0; |
| 282 |
arg0_buf[2] = 0; |
| 283 |
|
276 |
|
| 284 |
pdc = (pdc_in) ? pdc_in : &no_object; |
277 |
status = acpi_evaluate_object(pr->handle, "_PDC", pdc_in, NULL); |
| 285 |
|
278 |
|
| 286 |
status = acpi_evaluate_object(pr->handle, "_PDC", pdc, NULL); |
279 |
if ((ACPI_FAILURE(status))) |
| 287 |
|
|
|
| 288 |
if ((ACPI_FAILURE(status)) && (pdc_in)) |
| 289 |
ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Error evaluating _PDC, using legacy perf. control...\n")); |
280 |
ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Error evaluating _PDC, using legacy perf. control...\n")); |
| 290 |
|
281 |
|
| 291 |
return_VALUE(status); |
282 |
return_VALUE(status); |