linuxkpi: Define pm_suspend_target_state
in <linux/suspend.h>
It is set to `PM_SUSPEND_ON`. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38161
This commit is contained in:
parent
4152ce2139
commit
ccd31b4645
@ -3,6 +3,13 @@
|
||||
#ifndef _LINUXKPI_LINUX_SUSPEND_H_
|
||||
#define _LINUXKPI_LINUX_SUSPEND_H_
|
||||
|
||||
typedef int suspend_state_t;
|
||||
|
||||
extern suspend_state_t pm_suspend_target_state;
|
||||
|
||||
#define PM_SUSPEND_ON 0
|
||||
#define PM_SUSPEND_TO_IDLE 1
|
||||
|
||||
static inline int
|
||||
pm_suspend_via_firmware()
|
||||
{
|
||||
|
@ -40,6 +40,7 @@
|
||||
#include <dev/acpica/acpivar.h>
|
||||
|
||||
#include <linux/notifier.h>
|
||||
#include <linux/suspend.h>
|
||||
|
||||
#include <acpi/acpi_bus.h>
|
||||
#include <acpi/video.h>
|
||||
@ -58,6 +59,8 @@ _Static_assert(LINUX_ACPI_TAGS <= LINUX_NOTIFY_TAGS,
|
||||
|
||||
#ifdef DEV_ACPI
|
||||
|
||||
suspend_state_t pm_suspend_target_state = PM_SUSPEND_ON;
|
||||
|
||||
static uint32_t linux_acpi_target_sleep_state = ACPI_STATE_S0;
|
||||
|
||||
static eventhandler_tag resume_tag;
|
||||
|
Loading…
Reference in New Issue
Block a user