Project

General

Profile

Bug #557 » acpi-nocst.diff

qhwt+dfly, 02/15/2007 09:23 AM

View differences:

acpi_cpu.c 15 Feb 2007 09:01:51 -0000
237 237
    cx_count = 0;
238 238
    buf.Pointer = NULL;
239 239
    buf.Length = ACPI_ALLOCATE_BUFFER;
240
    status = AcpiEvaluateObject(handle, "_CST", NULL, &buf);
240
    if (ktestenv("debug.acpi.cpu.nocst"))
241
	status = AE_ERROR;
242
    else
243
	status = AcpiEvaluateObject(handle, "_CST", NULL, &buf);
241 244
    if (ACPI_SUCCESS(status)) {
242 245
	obj = (ACPI_OBJECT *)buf.Pointer;
243 246
	if (ACPI_PKG_VALID(obj, 2))
......
584 587

  
585 588
    ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__);
586 589

  
587
    buf.Pointer = NULL;
590
    if (ktestenv("debug.acpi.cpu.nocst"))
591
    	return (ENXIO);
588 592
    buf.Length = ACPI_ALLOCATE_BUFFER;
589 593
    status = AcpiEvaluateObject(sc->cpu_handle, "_CST", NULL, &buf);
590 594
    if (ACPI_FAILURE(status))
(3-3/8)