Project

General

Profile

Bug #557 » acpi-test.diff

qhwt+dfly, 02/20/2007 11:00 PM

View differences:

acpi_cpu.c 20 Feb 2007 21:56:45 -0000
203 203
    /* Get our Processor object. */
204 204
    buf.Pointer = NULL;
205 205
    buf.Length = ACPI_ALLOCATE_BUFFER;
206
kprintf("HERE: %s:%d\n", __func__, __LINE__);
206 207
    status = AcpiEvaluateObject(handle, NULL, NULL, &buf);
207 208
    if (ACPI_FAILURE(status)) {
208 209
	device_printf(dev, "probe failed to get Processor obj - %s\n",
......
215 216
	AcpiOsFree(obj);
216 217
	return (ENXIO);
217 218
    }
219
kprintf("HERE: %s:%d\n", __func__, __LINE__);
218 220

  
219 221
    /*
220 222
     * Find the processor associated with our unit.  We could use the
......
226 228
    if (acpi_pcpu_get_id(device_get_unit(dev), &acpi_id, &cpu_id) != 0)
227 229
	return (ENXIO);
228 230

  
231
kprintf("HERE: %s:%d\n", __func__, __LINE__);
229 232
    /*
230 233
     * Check if we already probed this processor.  We scan the bus twice
231 234
     * so it's possible we've already seen this one.
......
238 241
    buf.Pointer = NULL;
239 242
    buf.Length = ACPI_ALLOCATE_BUFFER;
240 243
    status = AcpiEvaluateObject(handle, "_CST", NULL, &buf);
244
kprintf("HERE: %s:%d\n", __func__, __LINE__);
241 245
    if (ACPI_SUCCESS(status)) {
242 246
	obj = (ACPI_OBJECT *)buf.Pointer;
243 247
	if (ACPI_PKG_VALID(obj, 2))
......
283 287
    sc->cpu_handle = acpi_get_handle(dev);
284 288
    cpu_softc[acpi_get_magic(dev)] = sc;
285 289

  
290
kprintf("HERE: %s:%d\n", __func__, __LINE__);
286 291
    buf.Pointer = NULL;
287 292
    buf.Length = ACPI_ALLOCATE_BUFFER;
288 293
    status = AcpiEvaluateObject(sc->cpu_handle, NULL, NULL, &buf);
......
305 310
				SYSCTL_CHILDREN(acpi_sc->acpi_sysctl_tree),
306 311
				OID_AUTO, "cpu", CTLFLAG_RD, 0, "");
307 312

  
313
kprintf("HERE: %s:%d\n", __func__, __LINE__);
308 314
    /* If this is the first device probed, check for quirks. */
309 315
    if (device_get_unit(dev) == 0)
310 316
	acpi_cpu_quirks(sc);
......
313 319
     * Probe for throttling and Cx state support.
314 320
     * If none of these is present, free up unused resources.
315 321
     */
322
kprintf("HERE: %s:%d\n", __func__, __LINE__);
316 323
    thr_ret = acpi_cpu_throttle_probe(sc);
324
kprintf("HERE: %s:%d\n", __func__, __LINE__);
317 325
    cx_ret = acpi_cpu_cx_probe(sc);
318 326
    if (thr_ret == 0 || cx_ret == 0) {
327
kprintf("HERE: %s:%d\n", __func__, __LINE__);
319 328
	status = AcpiInstallNotifyHandler(sc->cpu_handle, ACPI_DEVICE_NOTIFY,
320 329
					  acpi_cpu_notify, sc);
330
kprintf("HERE: %s:%d\n", __func__, __LINE__);
321 331
	if (device_get_unit(dev) == 0)
322 332
	    AcpiOsExecute(OSL_NOTIFY_HANDLER, acpi_cpu_startup, NULL);
323 333
    } else {
(4-4/8)