33#include <sys/eventhandler.h>
37#include <sys/taskqueue.h>
47 int state = (intptr_t)arg;
84 if (state != POWER_SLEEP_STATE_STANDBY &&
85 state != POWER_SLEEP_STATE_SUSPEND &&
86 state != POWER_SLEEP_STATE_HIBERNATE)
113 printf(
"system power profile changed to '%s'\n",
114 (state == POWER_PROFILE_PERFORMANCE) ?
115 "performance" :
"economy");
122 EVENTHANDLER_INVOKE(power_profile_change, 0);
static int power_profile_state
void power_profile_set_state(int state)
int power_profile_get_state(void)
static power_pm_fn_t power_pm_fn
static struct task power_pm_task
static u_int power_pm_type
static void * power_pm_arg
static void power_pm_deferred_fn(void *arg, int pending)
void power_pm_suspend(int state)
u_int power_pm_get_type(void)
int power_pm_register(u_int pm_type, power_pm_fn_t pm_fn, void *pm_arg)
int printf(const char *fmt,...)
int taskqueue_enqueue(struct taskqueue *queue, struct task *task)