acpi_lid.c (150003) | acpi_lid.c (167814) |
---|---|
1/*- 2 * Copyright (c) 2000 Takanori Watanabe <takawata@jp.freebsd.org> 3 * Copyright (c) 2000 Mitsuru IWASAKI <iwasaki@jp.freebsd.org> 4 * Copyright (c) 2000 Michael Smith <msmith@freebd.org> 5 * Copyright (c) 2000 BSDi 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000 Takanori Watanabe <takawata@jp.freebsd.org> 3 * Copyright (c) 2000 Mitsuru IWASAKI <iwasaki@jp.freebsd.org> 4 * Copyright (c) 2000 Michael Smith <msmith@freebd.org> 5 * Copyright (c) 2000 BSDi 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_lid.c 150003 2005-09-11 18:39:03Z obrien $"); | 31__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_lid.c 167814 2007-03-22 18:16:43Z jkim $"); |
32 33#include "opt_acpi.h" 34#include <sys/param.h> 35#include <sys/kernel.h> 36#include <sys/module.h> 37#include <sys/bus.h> 38#include <sys/proc.h> 39 --- 139 unchanged lines hidden (view full) --- 179{ 180 struct acpi_lid_softc *sc; 181 182 ACPI_FUNCTION_TRACE_U32((char *)(uintptr_t)__func__, notify); 183 184 sc = (struct acpi_lid_softc *)context; 185 switch (notify) { 186 case ACPI_NOTIFY_STATUS_CHANGED: | 32 33#include "opt_acpi.h" 34#include <sys/param.h> 35#include <sys/kernel.h> 36#include <sys/module.h> 37#include <sys/bus.h> 38#include <sys/proc.h> 39 --- 139 unchanged lines hidden (view full) --- 179{ 180 struct acpi_lid_softc *sc; 181 182 ACPI_FUNCTION_TRACE_U32((char *)(uintptr_t)__func__, notify); 183 184 sc = (struct acpi_lid_softc *)context; 185 switch (notify) { 186 case ACPI_NOTIFY_STATUS_CHANGED: |
187 AcpiOsQueueForExecution(OSD_PRIORITY_LO, 188 acpi_lid_notify_status_changed, sc); | 187 AcpiOsExecute(OSL_NOTIFY_HANDLER, 188 acpi_lid_notify_status_changed, sc); |
189 break; 190 default: 191 device_printf(sc->lid_dev, "unknown notify %#x\n", notify); 192 break; 193 } 194 195 return_VOID; 196} | 189 break; 190 default: 191 device_printf(sc->lid_dev, "unknown notify %#x\n", notify); 192 break; 193 } 194 195 return_VOID; 196} |