acpi_thermal.c (299126) | acpi_thermal.c (300421) |
---|---|
1/*- 2 * Copyright (c) 2000, 2001 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000, 2001 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_thermal.c 299126 2016-05-05 18:43:31Z jkim $"); | 29__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_thermal.c 300421 2016-05-22 13:58:32Z loos $"); |
30 31#include "opt_acpi.h" 32#include <sys/param.h> 33#include <sys/kernel.h> 34#include <sys/bus.h> 35#include <sys/cpu.h> 36#include <sys/kthread.h> 37#include <sys/malloc.h> --- 10 unchanged lines hidden (view full) --- 48#include <contrib/dev/acpica/include/accommon.h> 49 50#include <dev/acpica/acpivar.h> 51 52/* Hooks for the ACPI CA debugging infrastructure */ 53#define _COMPONENT ACPI_THERMAL 54ACPI_MODULE_NAME("THERMAL") 55 | 30 31#include "opt_acpi.h" 32#include <sys/param.h> 33#include <sys/kernel.h> 34#include <sys/bus.h> 35#include <sys/cpu.h> 36#include <sys/kthread.h> 37#include <sys/malloc.h> --- 10 unchanged lines hidden (view full) --- 48#include <contrib/dev/acpica/include/accommon.h> 49 50#include <dev/acpica/acpivar.h> 51 52/* Hooks for the ACPI CA debugging infrastructure */ 53#define _COMPONENT ACPI_THERMAL 54ACPI_MODULE_NAME("THERMAL") 55 |
56#define TZ_ZEROC 2732 | 56#define TZ_ZEROC 2731 |
57#define TZ_KELVTOC(x) (((x) - TZ_ZEROC) / 10), abs(((x) - TZ_ZEROC) % 10) 58 59#define TZ_NOTIFY_TEMPERATURE 0x80 /* Temperature changed. */ 60#define TZ_NOTIFY_LEVELS 0x81 /* Cooling levels changed. */ 61#define TZ_NOTIFY_DEVICES 0x82 /* Device lists changed. */ 62#define TZ_NOTIFY_CRITICAL 0xcc /* Fake notify that _CRT/_HOT reached. */ 63 64/* Check for temperature changes every 10 seconds by default */ --- 1150 unchanged lines hidden --- | 57#define TZ_KELVTOC(x) (((x) - TZ_ZEROC) / 10), abs(((x) - TZ_ZEROC) % 10) 58 59#define TZ_NOTIFY_TEMPERATURE 0x80 /* Temperature changed. */ 60#define TZ_NOTIFY_LEVELS 0x81 /* Cooling levels changed. */ 61#define TZ_NOTIFY_DEVICES 0x82 /* Device lists changed. */ 62#define TZ_NOTIFY_CRITICAL 0xcc /* Fake notify that _CRT/_HOT reached. */ 63 64/* Check for temperature changes every 10 seconds by default */ --- 1150 unchanged lines hidden --- |