Deleted Added
full compact
acpi_powerres.c (119529) acpi_powerres.c (125745)
1/*-
2 * Copyright (c) 2001 Michael Smith
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001 Michael Smith
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_powerres.c 119529 2003-08-28 16:06:30Z njl $");
28__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_powerres.c 125745 2004-02-12 20:45:01Z jhb $");
29
30#include "opt_acpi.h"
31#include <sys/param.h>
32#include <sys/kernel.h>
33#include <sys/malloc.h>
34#include <sys/bus.h>
35
36#include "acpi.h"

--- 361 unchanged lines hidden (view full) ---

398 "resource list is not ACPI_TYPE_PACKAGE (%d)\n",
399 reslist_object->Type));
400 status = AE_TYPE;
401 goto out;
402 }
403 }
404
405 /*
29
30#include "opt_acpi.h"
31#include <sys/param.h>
32#include <sys/kernel.h>
33#include <sys/malloc.h>
34#include <sys/bus.h>
35
36#include "acpi.h"

--- 361 unchanged lines hidden (view full) ---

398 "resource list is not ACPI_TYPE_PACKAGE (%d)\n",
399 reslist_object->Type));
400 status = AE_TYPE;
401 goto out;
402 }
403 }
404
405 /*
406 * Now we are ready to switch, so kill off any current power
406 * Now we are ready to switch, so kill off any current power
407 * resource references.
408 */
409 res_changed = 0;
410 while((pr = TAILQ_FIRST(&pc->ac_references)) != NULL) {
411 res_changed = 1;
412 ACPI_DEBUG_PRINT((ACPI_DB_OBJECTS, "removing reference to %s\n",
413 acpi_name(pr->ar_resource->ap_resource)));
414 TAILQ_REMOVE(&pr->ar_resource->ap_references, pr, ar_rlink);

--- 271 unchanged lines hidden ---
407 * resource references.
408 */
409 res_changed = 0;
410 while((pr = TAILQ_FIRST(&pc->ac_references)) != NULL) {
411 res_changed = 1;
412 ACPI_DEBUG_PRINT((ACPI_DB_OBJECTS, "removing reference to %s\n",
413 acpi_name(pr->ar_resource->ap_resource)));
414 TAILQ_REMOVE(&pr->ar_resource->ap_references, pr, ar_rlink);

--- 271 unchanged lines hidden ---