summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpivar.h
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>2002-03-04 18:46:13 +0000
committeriwasaki <iwasaki@FreeBSD.org>2002-03-04 18:46:13 +0000
commit3f245d8dd193f05b337f1358ec6b33ed212f9cc1 (patch)
tree8012c8174b9cc8503bad897aec51d04ec2c4490b /sys/dev/acpica/acpivar.h
parent3fe10323bf98b7928a3f885f578ec703252ee6b7 (diff)
downloadFreeBSD-src-3f245d8dd193f05b337f1358ec6b33ed212f9cc1.zip
FreeBSD-src-3f245d8dd193f05b337f1358ec6b33ed212f9cc1.tar.gz
Add generalized power profile code.
This makes other power-management system (APM for now) to be able to generate power profile change events (ie. AC-line status changes), and other kernel components, not only the ACPI components, can be notified the events. - move subroutines in acpi_powerprofile.c (removed) to kern/subr_power.c - call power_profile_set_state() also from APM driver when AC-line status changes - add call-back function for Crusoe LongRun controlling on power profile changes for a example
Diffstat (limited to 'sys/dev/acpica/acpivar.h')
-rw-r--r--sys/dev/acpica/acpivar.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h
index ac86c41..5a04cf5 100644
--- a/sys/dev/acpica/acpivar.h
+++ b/sys/dev/acpica/acpivar.h
@@ -358,21 +358,6 @@ extern int acpi_cmbat_get_battinfo(int, struct acpi_battinfo *);
extern int acpi_acad_get_acline(int *);
-/*
- * System power API.
- *
- * XXX should this be further generalised?
- *
- */
-#define POWERPROFILE_PERFORMANCE 0
-#define POWERPROFILE_ECONOMY 1
-
-extern int powerprofile_get_state(void);
-extern void powerprofile_set_state(int state);
-
-typedef void (*powerprofile_change_hook)(void *);
-EVENTHANDLER_DECLARE(powerprofile_change, powerprofile_change_hook);
-
#if defined(ACPI_MAX_THREADS) && ACPI_MAX_THREADS > 0
/*
* ACPI task kernel thread initialization.
OpenPOWER on IntegriCloud