summaryrefslogtreecommitdiff
path: root/power
diff options
context:
space:
mode:
Diffstat (limited to 'power')
-rw-r--r--power/host_sleep.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/power/host_sleep.c b/power/host_sleep.c
index 54a308d6c3..4bf10e2749 100644
--- a/power/host_sleep.c
+++ b/power/host_sleep.c
@@ -83,7 +83,6 @@ void power_set_host_sleep_state(enum host_sleep_event state)
host_sleep_state = state;
}
-#ifdef CONFIG_POWER_SLEEP_FAILURE_DETECTION
/* Flag to notify listeners about suspend/resume events. */
enum sleep_notify_type sleep_notify = SLEEP_NOTIFY_NONE;
@@ -105,6 +104,8 @@ void sleep_notify_transition(int check_state, int hook_id)
sleep_set_notify(SLEEP_NOTIFY_NONE);
}
+#ifdef CONFIG_POWER_SLEEP_FAILURE_DETECTION
+
static uint16_t sleep_signal_timeout;
static uint32_t sleep_signal_transitions;
static void (*sleep_timeout_callback)(void);
@@ -190,14 +191,6 @@ void sleep_reset_tracking(void)
#else /* !CONFIG_POWER_SLEEP_FAILURE_DETECTION */
/* No action */
-void sleep_set_notify(enum sleep_notify_type notify)
-{
-}
-
-void sleep_notify_transition(int check_state, int hook_id)
-{
-}
-
void sleep_suspend_transition(void)
{
}