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
cx_count = 0;
buf.Pointer = NULL;
buf.Length = ACPI_ALLOCATE_BUFFER;
status = AcpiEvaluateObject(handle, "_CST", NULL, &buf);
if (ktestenv("debug.acpi.cpu.nocst"))
status = AE_ERROR;
else
status = AcpiEvaluateObject(handle, "_CST", NULL, &buf);
if (ACPI_SUCCESS(status)) {
obj = (ACPI_OBJECT *)buf.Pointer;
if (ACPI_PKG_VALID(obj, 2))
......
ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__);
buf.Pointer = NULL;
if (ktestenv("debug.acpi.cpu.nocst"))
return (ENXIO);
buf.Length = ACPI_ALLOCATE_BUFFER;
status = AcpiEvaluateObject(sc->cpu_handle, "_CST", NULL, &buf);
if (ACPI_FAILURE(status))
(3-3/8)